summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/xfrd-tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/nsd/xfrd-tcp.c')
-rw-r--r--usr.sbin/nsd/xfrd-tcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/nsd/xfrd-tcp.c b/usr.sbin/nsd/xfrd-tcp.c
index 0b7d7b4cafe..a317857afdb 100644
--- a/usr.sbin/nsd/xfrd-tcp.c
+++ b/usr.sbin/nsd/xfrd-tcp.c
@@ -894,7 +894,11 @@ xfrd_tcp_release(xfrd_tcp_set_t* set, xfrd_zone_t* zone)
/* if pipe was full, but no more, then see if waiting element is
* for the same master, and can fill the unused ID */
if(tp->num_unused == 1 && set->tcp_waiting_first) {
+#ifdef INET6
struct sockaddr_storage to;
+#else
+ struct sockaddr_in to;
+#endif
socklen_t to_len = xfrd_acl_sockaddr_to(
set->tcp_waiting_first->master, &to);
if(to_len == tp->ip_len && memcmp(&to, &tp->ip, to_len) == 0) {