From d5ae1f92026a0613ae8794ab8681fe238b4ac40e Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sun, 6 Nov 2011 15:47:00 +0100 Subject: [PATCH] buff is unsigned char now --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index f8a0122..90ec934 100644 --- a/src/core.c +++ b/src/core.c @@ -368,7 +368,7 @@ static int tunnel_to(int sock, ip_type ip, unsigned short port, proxy_type pt,ch goto err; if (buff[0] != 5 || (buff[1] != 0 && buff[1] != 2)) { - if(buff[0] == 5 && buff[1] ==(char)0xFF) + if(buff[0] == 5 && buff[1] == 0xFF) return BLOCKED; else goto err;