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:
parent
4e9d95c1e7
commit
42f832548d
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user