socksd: udp RSV and FRAG must be zero
This commit is contained in:
parent
81fb4d22e2
commit
25b63636a0
1 changed files with 4 additions and 1 deletions
|
@ -122,7 +122,10 @@ udprelay(int fd, char *dir)
|
||||||
while((r = read(fd, msg.data, sizeof(msg.data))) > 0){
|
while((r = read(fd, msg.data, sizeof(msg.data))) > 0){
|
||||||
if(r < 4)
|
if(r < 4)
|
||||||
continue;
|
continue;
|
||||||
p = msg.data + 3;
|
p = msg.data;
|
||||||
|
if(p[0] | p[1] | p[2])
|
||||||
|
continue;
|
||||||
|
p += 3;
|
||||||
switch(*p++){
|
switch(*p++){
|
||||||
default:
|
default:
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue