diff options
author | Jeremy Allison <jra@samba.org> | 2009-01-16 11:55:40 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-01-28 09:40:06 +0100 |
commit | b0f23b4dae1b31060579f716265b07c7b369768d (patch) | |
tree | 53d13783be1c878b70e4d3a94cdbd1b145658e55 /source | |
parent | 1a812bee2208970deb450e8de2487278ab709d06 (diff) | |
download | samba-b0f23b4dae1b31060579f716265b07c7b369768d.tar.gz |
"First thing, kill all the language lawyers" :-). Ensure possible insane compilers
can't kill us later.
Jeremy.
(cherry picked from commit 3504910d91fa6d174861815255062efefb0c46aa)
Diffstat (limited to 'source')
-rw-r--r-- | source/lib/util_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c index a0d23268a65..650bd1302f8 100644 --- a/source/lib/util_sock.c +++ b/source/lib/util_sock.c @@ -2080,6 +2080,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; @@ -2132,7 +2133,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); |