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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 6782249bf6..64cd74c328 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -159,7 +159,7 @@ int get_socket_port(int fd)
if (getsockname(fd, (struct sockaddr *)&sa, &length) < 0) {
int level = (errno == ENOTCONN) ? 2 : 0;
- DEBUG(level, ("getpeername failed. Error was %s\n",
+ DEBUG(level, ("getsockname failed. Error was %s\n",
strerror(errno)));
return -1;
}