summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-25 19:18:46 -0700
committerVolker Lendecke <vl@samba.org>2010-09-26 17:36:40 +0200
commitd4bfb5c48847fa73cdf10ede0d72b90ac45a1ef1 (patch)
tree81d09aed6d27f725808791a4a07a7d905695e57f /source3/passdb
parent227945d31c23b2b76c312cef73370865e1722f3a (diff)
downloadsamba-d4bfb5c48847fa73cdf10ede0d72b90ac45a1ef1.tar.gz
samba-d4bfb5c48847fa73cdf10ede0d72b90ac45a1ef1.tar.bz2
samba-d4bfb5c48847fa73cdf10ede0d72b90ac45a1ef1.zip
s3: Remove talloc_autofree_context() from guest_user_info()
pwd is freed a few lines down
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index 9f3a1725a4..11b70f2bcb 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -352,7 +352,8 @@ static bool guest_user_info( struct samu *user )
NTSTATUS result;
const char *guestname = lp_guestaccount();
- if ( !(pwd = getpwnam_alloc(talloc_autofree_context(), guestname ) ) ) {
+ pwd = getpwnam_alloc(talloc_tos(), guestname);
+ if (pwd == NULL) {
DEBUG(0,("guest_user_info: Unable to locate guest account [%s]!\n",
guestname));
return False;