diff options
author | Jeremy Allison <jra@samba.org> | 2009-01-16 11:55:01 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-01-16 11:55:01 -0800 |
commit | fb904194c9f696b72d862e51e7ba688decdda192 (patch) | |
tree | 7b6e82c306967ae474de52d03d1f95a2b0d2842e /source3 | |
parent | 57f978d1712943f6c93e914e52a12a4cfb73aadd (diff) | |
download | samba-fb904194c9f696b72d862e51e7ba688decdda192.tar.gz samba-fb904194c9f696b72d862e51e7ba688decdda192.tar.bz2 samba-fb904194c9f696b72d862e51e7ba688decdda192.zip |
"First thing, kill all the language lawyers" :-). Ensure possible insane compilers
can't kill us later.
Jeremy.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index b46ff2c462..98c25c1e24 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -1889,6 +1889,7 @@ const char *get_mydnsfullname(void) bool is_myname_or_ipaddr(const char *s) { TALLOC_CTX *ctx = talloc_tos(); + char addr[INET6_ADDRSTRLEN]; char *name = NULL; const char *dnsname; char *servername = NULL; @@ -1941,7 +1942,6 @@ bool is_myname_or_ipaddr(const char *s) /* Use DNS to resolve the name, but only the first address */ struct sockaddr_storage ss; if (interpret_string_addr(&ss, servername, 0)) { - char addr[INET6_ADDRSTRLEN]; print_sockaddr(addr, sizeof(addr), &ss); |