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 6a8688b637..71328459f0 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -647,7 +647,8 @@ return the hostname of the client const char *cgi_remote_addr(void) { if (inetd_server) { - return get_peer_addr(1); + char addr[INET6_ADDRSTRLEN]; + return get_peer_addr(1,addr); } return getenv("REMOTE_ADDR"); } |