From: Guus Sliepen Date: Sun, 3 Mar 2013 19:51:36 +0000 (+0100) Subject: Fix detection of rejected SOCKS5 proxy requests. X-Git-Tag: release-1.0.20~1 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=e8bef0453680526bf82600ae766ff0c9dec22975;p=tinc Fix detection of rejected SOCKS5 proxy requests. --- diff --git a/src/meta.c b/src/meta.c index 27baf8fe..40770298 100644 --- a/src/meta.c +++ b/src/meta.c @@ -1,6 +1,6 @@ /* meta.c -- handle the meta communication - Copyright (C) 2000-2009 Guus Sliepen , + Copyright (C) 2000-2013 Guus Sliepen , 2000-2005 Ivo Timmermans 2006 Scott Lamb @@ -190,7 +190,7 @@ bool receive_meta(connection_t *c) { logger(LOG_ERR, "Invalid response from proxy server"); return false; } - if(c->buffer[1] == 0xff) { + if(c->buffer[1] == (char)0xff) { logger(LOG_ERR, "Proxy request rejected: unsuitable authentication method"); return false; }