diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-29 22:57:19 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-11-29 23:42:41 +0100 |
commit | 42f832548d66245a16d7ec369494afb0bfc45425 (patch) | |
tree | 4ce5f3901c9c1527f6a6bd910ac40710b5f98f50 /source3/web | |
parent | 4e9d95c1e761e0331f1edcd25a64171ce9b60cc7 (diff) | |
download | samba-42f832548d66245a16d7ec369494afb0bfc45425.tar.gz samba-42f832548d66245a16d7ec369494afb0bfc45425.tar.bz2 samba-42f832548d66245a16d7ec369494afb0bfc45425.zip |
s3: Fix an uninitialized variable reference
Diffstat (limited to 'source3/web')
-rw-r--r-- | source3/web/cgi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 24d2b05157..c81ef87e1a 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"); } |