When doing reverse lookups actually look up the name, not
authorJeremy Allison <jra@samba.org>
Thu, 25 Oct 2007 23:14:52 +0000 (16:14 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 25 Oct 2007 23:14:52 +0000 (16:14 -0700)
just the numeric address (doh!) :-).
Jeremy.

source/lib/util_sock.c

index 2d784717b2c2299e23f4a94697d311ee442f9358..8a85f7a5c5586be3855fe0794085a3a0af89d399 100644 (file)
@@ -1879,7 +1879,7 @@ const char *get_peer_name(int fd, bool force_lookup)
                        sizeof(name_buf),
                        NULL,
                        0,
-                       NI_NUMERICHOST);
+                       0);
 
        if (ret) {
                DEBUG(1,("get_peer_name: getnameinfo failed "