summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-25 16:30:06 -0700
committerVolker Lendecke <vl@samba.org>2010-09-26 03:29:29 +0200
commit4ebbbdd011aae397c79cc5a83a729e547480c112 (patch)
tree228c8f219b914d57321d9c6dc85c8fa73dc764be /source3/web
parentbf6ca13346e67107d821cec9edf4f767defa490e (diff)
downloadsamba-4ebbbdd011aae397c79cc5a83a729e547480c112.tar.gz
samba-4ebbbdd011aae397c79cc5a83a729e547480c112.tar.bz2
samba-4ebbbdd011aae397c79cc5a83a729e547480c112.zip
s3: Remove talloc_autofree_context() from swat
In both cases, pass is freed immediately
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 794152cd99..1a472a77c7 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -314,7 +314,7 @@ static void cgi_web_auth(void)
exit(0);
}
- pwd = getpwnam_alloc(talloc_autofree_context(), user);
+ pwd = getpwnam_alloc(talloc_tos(), user);
if (!pwd) {
printf("%sCannot find user %s<br>%s\n", head, user, tail);
exit(0);
@@ -369,7 +369,7 @@ static bool cgi_handle_authorization(char *line)
* Try and get the user from the UNIX password file.
*/
- pass = getpwnam_alloc(talloc_autofree_context(), user);
+ pass = getpwnam_alloc(talloc_tos(), user);
rhost = client_name(1);
if (strequal(rhost,"UNKNOWN"))