Don't assume sa.sa_family is a short int.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 15 Apr 2016 09:10:50 +0000 (11:10 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 15 Apr 2016 09:10:50 +0000 (11:10 +0200)
Because FreeBSD's compiler complained about it.

src/protocol_auth.c

index 2262fbb234acfe2d5cda30eed992208781c47623..0a7ad1ca383ea8c0bf21cd44df7c8e762a7f59dc 100644 (file)
@@ -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)