mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
fix a bug that leads to a crash when binat rules of the form
'binat from ... to ... -> (if)' are used, where the interface is dynamic. Discovered by: kos(at)bastard(dot)net Analyzed by: Pyun YongHyeon Approved by: mlaier (mentor) MFC after: 1 week
This commit is contained in:
parent
de30ea131f
commit
1a4a376387
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138041
@ -2329,7 +2329,7 @@ pf_get_translation(struct pf_pdesc *pd, struct mbuf *m, int off, int direction,
|
||||
saddr, pd->af);
|
||||
break;
|
||||
case PF_IN:
|
||||
if (r->rpool.cur->addr.type == PF_ADDR_DYNIFTL){
|
||||
if (r->src.addr.type == PF_ADDR_DYNIFTL) {
|
||||
if (pd->af == AF_INET) {
|
||||
if (r->src.addr.p.dyn->
|
||||
pfid_acnt4 < 1)
|
||||
|
Loading…
Reference in New Issue
Block a user