From 1a4a376387ac0ee017342057ed2041c04ce95fea Mon Sep 17 00:00:00 2001 From: Daniel Hartmeier Date: Wed, 24 Nov 2004 00:43:34 +0000 Subject: [PATCH] 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 --- sys/contrib/pf/net/pf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c index 0219f2bb73c..d29be54ed8d 100644 --- a/sys/contrib/pf/net/pf.c +++ b/sys/contrib/pf/net/pf.c @@ -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)