mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 15:52:40 -04:00
pf: fix incorrect calls to pf_translate_icmp_af()
The 'iih' argument is already a pointer, pass it as is rather than its address.
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
181549c37f
commit
8a85584785
1 changed files with 2 additions and 2 deletions
|
|
@ -8353,7 +8353,7 @@ pf_test_state_icmp(struct pf_kstate **state, struct pf_pdesc *pd,
|
|||
nk->af))
|
||||
return (PF_DROP);
|
||||
pd->proto = IPPROTO_ICMPV6;
|
||||
if (pf_translate_icmp_af(nk->af, &iih))
|
||||
if (pf_translate_icmp_af(nk->af, iih))
|
||||
return (PF_DROP);
|
||||
if (virtual_type == htons(ICMP_ECHO) &&
|
||||
nk->port[iidx] != iih->icmp_id)
|
||||
|
|
@ -8465,7 +8465,7 @@ pf_test_state_icmp(struct pf_kstate **state, struct pf_pdesc *pd,
|
|||
nk->af))
|
||||
return (PF_DROP);
|
||||
pd->proto = IPPROTO_ICMP;
|
||||
if (pf_translate_icmp_af(nk->af, &iih))
|
||||
if (pf_translate_icmp_af(nk->af, iih))
|
||||
return (PF_DROP);
|
||||
if (virtual_type ==
|
||||
htons(ICMP6_ECHO_REQUEST) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue