Fix detection of rejected SOCKS5 proxy requests.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 3 Mar 2013 19:51:36 +0000 (20:51 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 3 Mar 2013 19:51:36 +0000 (20:51 +0100)
src/meta.c

index 27baf8fea48018dcfa57f42958ac13ba2153641b..4077029849058b0d2b321df5d22ce67e561a7fef 100644 (file)
@@ -1,6 +1,6 @@
 /*
     meta.c -- handle the meta communication
-    Copyright (C) 2000-2009 Guus Sliepen <guus@tinc-vpn.org>,
+    Copyright (C) 2000-2013 Guus Sliepen <guus@tinc-vpn.org>,
                   2000-2005 Ivo Timmermans
                   2006      Scott Lamb <slamb@slamb.org>
 
@@ -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;
                                                }