Improt pf.c 1.636 from OpenBSD
Original log: Make sure pd2 has a pointer to the icmp header in the payload; fixes panic seen with some some icmp types in icmp error message payloads. Obtained from: OpenBSD
This commit is contained in:
parent
44df0d9356
commit
5fff3f1010
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257224
@ -4994,7 +4994,7 @@ pf_test_state_icmp(struct pf_state **state, int direction, struct pfi_kif *kif,
|
||||
return (PF_DROP);
|
||||
}
|
||||
|
||||
icmpid = iih.icmp_id;
|
||||
pd2.hdr.icmp = &iih;
|
||||
pf_icmp_mapping(&pd2, iih.icmp_type,
|
||||
&icmp_dir, &multi, &virtual_id, &virtual_type);
|
||||
|
||||
@ -5049,6 +5049,7 @@ pf_test_state_icmp(struct pf_state **state, int direction, struct pfi_kif *kif,
|
||||
return (PF_DROP);
|
||||
}
|
||||
|
||||
pd2.hdr.icmp6 = &iih;
|
||||
pf_icmp_mapping(&pd2, iih.icmp6_type,
|
||||
&icmp_dir, &multi, &virtual_id, &virtual_type);
|
||||
ret = pf_icmp_state_lookup(&key, &pd2, state, m,
|
||||
|
Loading…
Reference in New Issue
Block a user