socksd: udp RSV and FRAG must be zero

front
cinap_lenrek 2012-03-11 18:18:59 +01:00
parent 81fb4d22e2
commit 25b63636a0
1 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,10 @@ udprelay(int fd, char *dir)
while((r = read(fd, msg.data, sizeof(msg.data))) > 0){
if(r < 4)
continue;
p = msg.data + 3;
p = msg.data;
if(p[0] | p[1] | p[2])
continue;
p += 3;
switch(*p++){
default:
continue;