X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fproxy.c;h=e30c1fb01cbc5212ada0f05beaaa43e8a2685541;hp=165d3f34aa50dce224ff54631a178ff6569ee450;hb=ad63e9fa6b41ca710e27dad621e34f1bc9bcd305;hpb=ea20820d229510ca0a915dc2a0a74249178e1c55 diff --git a/src/proxy.c b/src/proxy.c index 165d3f34..e30c1fb0 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -203,7 +203,7 @@ int receive_proxy_meta(connection_t *c, int start, int lenin) { case PROXY_SOCKS5: if(c->buflen < 2) return 0; - if(c->buffer[0] != 0x05 || c->buffer[1] == 0xff) { + if(c->buffer[0] != 0x05 || c->buffer[1] == (char)0xff) { logger(LOG_ERR, "Proxy authentication method rejected"); return -1; }