Don't mask the address in inet_makenetandmask() according to what class
it appears to be in: there is also CIDR. Noticed by: tegge
This commit is contained in:
parent
5f33ec7ba2
commit
5ab965347e
@ -823,7 +823,6 @@ inet_makenetandmask(net, sin, bits)
|
||||
else
|
||||
mask = 0xffffffff;
|
||||
}
|
||||
addr &= mask;
|
||||
}
|
||||
sin->sin_addr.s_addr = htonl(addr);
|
||||
sin = &so_mask.sin;
|
||||
|
Loading…
x
Reference in New Issue
Block a user