mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue