1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3: Fix an uninitialized variable reference

This commit is contained in:
Volker Lendecke 2009-11-29 22:57:19 +01:00
parent 4e9d95c1e7
commit 42f832548d

View File

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