summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 5422bc2180..3cce12381c 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -1728,7 +1728,7 @@ static const char *get_peer_addr_internal(int fd,
}
print_sockaddr_len(addr_buf,
- sizeof(addr_buf),
+ addr_buf_len,
pss,
*plength);
return addr_buf;