diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-04-14 04:34:08 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-04-14 04:34:08 +0000 |
commit | e52431f70a92f44ca12f3b6e1dafe3b7d67914da (patch) | |
tree | f33f9e538e740a81bc1b6f30ad69d6b4ea6df5e0 /source3 | |
parent | a130656fc090777ad8daec154bdfe1a0a84eef92 (diff) | |
download | samba-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.c | 2 |
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) { |