mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04:00
ng_ipfw(4): add missing change after previous commit
The function ng_ipfw_input() used to enjoy implicit
32->16 bits truncation of its second argument.
Make it explicit to recover from the breakage.
PR: 281082
Reported by: Ruben van Staveren <ruben@verweg.com>
Tested by: Ruben van Staveren <ruben@verweg.com>
MFC after: 3 days
Fixes: 20e1f207cc
This commit is contained in:
parent
17c9ac457c
commit
becd0079c0
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ ng_ipfw_input(struct mbuf **m0, struct ip_fw_args *fwa, bool tee)
|
|||
* Node must be loaded and corresponding hook must be present.
|
||||
*/
|
||||
if (fw_node == NULL ||
|
||||
(hook = ng_ipfw_findhook1(fw_node, fwa->rule.info)) == NULL)
|
||||
(hook = ng_ipfw_findhook1(fw_node, fwa->rule.info & IPFW_INFO_MASK)) == NULL)
|
||||
return (ESRCH); /* no hook associated with this rule */
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue