From e8bef0453680526bf82600ae766ff0c9dec22975 Mon Sep 17 00:00:00 2001
From: Guus Sliepen <guus@tinc-vpn.org>
Date: Sun, 3 Mar 2013 20:51:36 +0100
Subject: [PATCH] Fix detection of rejected SOCKS5 proxy requests.

---
 src/meta.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 <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;
 						}
-- 
2.39.5