From e1793bde612c499d08c6ecb9fdecb630a9cdf04d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 21 Jan 2002 00:47:02 +0000 Subject: getpwnam -> getpwnam_alloc (This used to be commit f8208458b3ac05743932d96e4d0a919adc0d9e55) --- source3/web/cgi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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
%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); } /*************************************************************************** -- cgit