From 4ebbbdd011aae397c79cc5a83a729e547480c112 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Sep 2010 16:30:06 -0700 Subject: s3: Remove talloc_autofree_context() from swat In both cases, pass is freed immediately --- source3/web/cgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/web/cgi.c') 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
%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")) -- cgit