From 5ea7373a2533fb18ae5e938792bef513381a4685 Mon Sep 17 00:00:00 2001 From: fyodor Date: Sat, 20 Jun 2015 21:56:01 +0000 Subject: [PATCH] Fix compilation on systems for which HAVE_SOCKADDR_SA_LEN is not defined. I don't think this issue affects any released version as it seems to have been introduced on r34671. Reported by Schuh Andreas --- ncat/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncat/util.c b/ncat/util.c index 15518cc6e..bdea79ab8 100644 --- a/ncat/util.c +++ b/ncat/util.c @@ -462,8 +462,8 @@ int do_listen(int type, int proto, const union sockaddr_u *srcaddr_u) default: sa_len = sizeof(*srcaddr_u); break; - } #endif + } if (bind(sock, &srcaddr_u->sockaddr, sa_len) < 0) { #ifdef HAVE_SYS_UN_H