mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173321
|
@ -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…
Reference in a new issue