git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
193b63f
)
Use talloc_tos() for a temporary getpwnam_alloc in make_connection_snum
author
Volker Lendecke
<vl@samba.org>
Tue, 6 May 2008 13:16:45 +0000
(15:16 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 7 May 2008 12:47:29 +0000
(14:47 +0200)
(This used to be commit
1843ea64ab1df5ced5926aedbeb27c8320b0c70b
)
source3/smbd/service.c
patch
|
blob
|
history
diff --git
a/source3/smbd/service.c
b/source3/smbd/service.c
index d57156762f247e5ab913b0464cb1bed6a3afd63c..f589f0644b84b0d8a99ed21c962ea405f2cf9023 100644
(file)
--- a/
source3/smbd/service.c
+++ b/
source3/smbd/service.c
@@
-683,7
+683,7
@@
static connection_struct *make_connection_snum(int snum, user_struct *vuser,
char *found_username = NULL;
guest = True;
- pass = getpwnam_alloc(
NULL
, guestname);
+ pass = getpwnam_alloc(
talloc_tos()
, guestname);
if (!pass) {
DEBUG(0,("make_connection_snum: Invalid guest "
"account %s??\n",guestname));