diff options
author | dhartmei <dhartmei@FreeBSD.org> | 2004-11-24 00:43:34 +0000 |
---|---|---|
committer | dhartmei <dhartmei@FreeBSD.org> | 2004-11-24 00:43:34 +0000 |
commit | f808618fbdeff70f6be8d4475f65d0a3c356cb97 (patch) | |
tree | c59a01ae298c44401755031e8e9b11ed3041ce85 /sys/contrib | |
parent | 6917b2b1d9aa04da49623cb452fe1e1390096fb9 (diff) | |
download | FreeBSD-src-f808618fbdeff70f6be8d4475f65d0a3c356cb97.zip FreeBSD-src-f808618fbdeff70f6be8d4475f65d0a3c356cb97.tar.gz |
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
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/pf/net/pf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c index 0219f2bb..d29be54 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) |