diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2004-11-24 00:36:11 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2004-11-24 00:36:11 +0000 |
commit | 484c640e38c5253c264ae8b7ed31d0a046f6b785 (patch) | |
tree | f166bd3341c87a7a2746923a9fbef86993e8c171 /sys | |
parent | 92589102071c8f110bedfb2e74646484915f4f4f (diff) |
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. reported by kos(at)bastard(dot)net, analyzed by
Pyun YongHyeon
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index e9117147786..df003382168 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.463 2004/11/19 18:20:10 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.464 2004/11/24 00:36:10 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -2224,7 +2224,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) { switch (pd->af) { #ifdef INET case AF_INET: |