git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use talloc_tos() for a temporary getpwnam_alloc in make_connection_snum
[samba.git]
/
source3
/
smbd
/
service.c
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));