summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-21 00:47:02 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-21 00:47:02 +0000
commite1793bde612c499d08c6ecb9fdecb630a9cdf04d (patch)
treeb13b0edb154ac5713ad7e75859c30aebd153f373
parenta03b5e3864ac6044694fe0b4e7f83098598b60dc (diff)
downloadsamba-e1793bde612c499d08c6ecb9fdecb630a9cdf04d.tar.gz
samba-e1793bde612c499d08c6ecb9fdecb630a9cdf04d.tar.bz2
samba-e1793bde612c499d08c6ecb9fdecb630a9cdf04d.zip
getpwnam -> getpwnam_alloc
(This used to be commit f8208458b3ac05743932d96e4d0a919adc0d9e55)
-rw-r--r--source3/web/cgi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index a8cb543dfb..e785ce92d8 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -312,7 +312,7 @@ static void cgi_web_auth(void)
exit(0);
}
- pwd = getpwnam(user);
+ pwd = getpwnam_alloc(user);
if (!pwd) {
printf("%sCannot find user %s<br>%s\n", head, user, tail);
exit(0);
@@ -325,6 +325,7 @@ static void cgi_web_auth(void)
head, user, (int)geteuid(), (int)getuid(), tail);
exit(0);
}
+ passwd_free(&pwd);
}
/***************************************************************************