diff options
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"); } |