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 2262fbb..0a7ad1c 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)