Don't assume sa.sa_family is a short int.

Because FreeBSD's compiler complained about it.
This commit is contained in:
Guus Sliepen 2016-04-15 11:10:50 +02:00
parent d704a89ecc
commit d4410d0cce

View 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)