include/smb.h: Re-added zero pointer protection to ZERO_STRUCTP.
[ira/wip.git] / source / lib / util_sock.c
index 47c94f21fc4accffbd2c3e7fbc8ab705b365d6bc..3a52732a2ac97b027557a2d04559336dfdd8b21a 100644 (file)
@@ -795,7 +795,7 @@ char *client_name(int fd)
        }
        
        if (getpeername(fd, &sa, &length) < 0) {
-               DEBUG(0,("getpeername failed\n"));
+               DEBUG(0,("getpeername failed. Error was %s\n", strerror(errno) ));
                return name_buf;
        }
        
@@ -840,7 +840,7 @@ char *client_addr(int fd)
        }
        
        if (getpeername(fd, &sa, &length) < 0) {
-               DEBUG(0,("getpeername failed\n"));
+               DEBUG(0,("getpeername failed. Error was %s\n", strerror(errno) ));
                return addr_buf;
        }