mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01: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 New Issue
Block a user