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 28154067d3..a59b1d5ef2 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -1802,8 +1802,8 @@ const char *get_peer_name(int fd,
socklen_t length = sizeof(ss);
const char *p;
int ret;
- char name_buf[HOST_NAME_MAX];
- char tmp_name[HOST_NAME_MAX];
+ char name_buf[MAX_DNS_NAME_LENGTH];
+ char tmp_name[MAX_DNS_NAME_LENGTH];
/* reverse lookups can be *very* expensive, and in many
situations won't work because many networks don't link dhcp