From d4410d0cce40929db9a0ce7042ef962f1867234d Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 15 Apr 2016 11:10:50 +0200 Subject: [PATCH] Don't assume sa.sa_family is a short int. Because FreeBSD's compiler complained about it. --- src/protocol_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 2262fbb..0a7ad1c 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -117,7 +117,7 @@ static bool send_proxyrequest(connection_t *c) { i += 2; c->tcplen += 22; } else { - logger(DEBUG_ALWAYS, LOG_ERR, "Address family %hx not supported for SOCKS 5 proxies!", c->address.sa.sa_family); + logger(DEBUG_ALWAYS, LOG_ERR, "Address family %x not supported for SOCKS 5 proxies!", c->address.sa.sa_family); return false; } if(i > len) -- 2.25.1