buff is unsigned char now

remote-dns
rofl0r 2011-11-06 15:47:00 +01:00
parent 4cb2cf3416
commit d5ae1f9202
1 changed files with 1 additions and 1 deletions

View File

@ -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;