From 42f832548d66245a16d7ec369494afb0bfc45425 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 29 Nov 2009 22:57:19 +0100 Subject: s3: Fix an uninitialized variable reference --- source3/web/cgi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/web/cgi.c') diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 24d2b051572..c81ef87e1a1 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -657,7 +657,8 @@ const char *cgi_remote_addr(void) { if (inetd_server) { char addr[INET6_ADDRSTRLEN]; - return get_peer_addr(1,addr,sizeof(addr)); + get_peer_addr(1,addr,sizeof(addr)); + return talloc_strdup(talloc_tos(), addr); } return getenv("REMOTE_ADDR"); } -- cgit