summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_sock.c')
-rw-r--r--source3/lib/util_sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 47c94f21fc..3a52732a2a 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -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;
}