1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3: Remove talloc_autofree_context() from swat

In both cases, pass is freed immediately
This commit is contained in:
Volker Lendecke 2010-09-25 16:30:06 -07:00
parent bf6ca13346
commit 4ebbbdd011

View File

@ -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"))