Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netlink: avoid underflow of groups bitset index
The subtraction is absolutely unnecessary and created an underflow with 926d2ea. I don't see why it was useful before 926d2ea and even before edf5608. The bitset addresses bits from zero to NLP_MAX_GROUPS-1. Note that check of user supplied argument for NETLINK_ADD_MEMBERSHIP and NETLINK_DROP_MEMBERSHIP socket options is already correct !(optval >= NLP_MAX_GROUPS). Fixes: 926d2ea
- Loading branch information