mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 14:17:06 -04:00
ipfw doesn't use the radix node head lock to protect the radix tree - remove acquisition
This commit is contained in:
parent
8d8b174004
commit
848552f31f
1 changed files with 0 additions and 2 deletions
|
|
@ -1827,9 +1827,7 @@ add_table_entry(struct ip_fw_chain *ch, uint16_t tbl, in_addr_t addr,
|
|||
ent->mask.sin_addr.s_addr = htonl(mlen ? ~((1 << (32 - mlen)) - 1) : 0);
|
||||
ent->addr.sin_addr.s_addr = addr & ent->mask.sin_addr.s_addr;
|
||||
IPFW_WLOCK(ch);
|
||||
RADIX_NODE_HEAD_LOCK(rnh);
|
||||
rn = rnh->rnh_addaddr(&ent->addr, &ent->mask, rnh, (void *)ent);
|
||||
RADIX_NODE_HEAD_UNLOCK(rnh);
|
||||
if (rn == NULL) {
|
||||
IPFW_WUNLOCK(ch);
|
||||
free(ent, M_IPFW_TBL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue