summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-14 04:34:08 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-14 04:34:08 +0000
commite52431f70a92f44ca12f3b6e1dafe3b7d67914da (patch)
treef33f9e538e740a81bc1b6f30ad69d6b4ea6df5e0 /source3
parenta130656fc090777ad8daec154bdfe1a0a84eef92 (diff)
downloadsamba-e52431f70a92f44ca12f3b6e1dafe3b7d67914da.tar.gz
samba-e52431f70a92f44ca12f3b6e1dafe3b7d67914da.tar.bz2
samba-e52431f70a92f44ca12f3b6e1dafe3b7d67914da.zip
use interpret_addr2() instead of inet_aton()
(This used to be commit f65c6ec6db8e05685c719e23d7b06b3452fbbb4e)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index bf02e40520..33c6e91709 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -1034,7 +1034,7 @@ char *get_socket_name(int fd)
fstrcpy(addr_buf, p);
- if (inet_aton(p, &addr) == 0) return name_buf;
+ addr = *interpret_addr2(p);
/* Look up the remote host name. */
if ((hp = gethostbyaddr((char *)&addr.s_addr, sizeof(addr.s_addr), AF_INET)) == 0) {