diff options
Diffstat (limited to 'source3/lib')
-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 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; } |