diff options
author | 2011-12-01 20:43:03 +0000 | |
---|---|---|
committer | 2011-12-01 20:43:03 +0000 | |
commit | b5e8e2fec3bd238b9549c70627e59d977bf0a18d (patch) | |
tree | b60b46b531e3a92f592b306801856e635ed728ab | |
parent | Make M-f and M-b work the same at the command prompt as in copy mode, (diff) | |
download | wireguard-openbsd-b5e8e2fec3bd238b9549c70627e59d977bf0a18d.tar.xz wireguard-openbsd-b5e8e2fec3bd238b9549c70627e59d977bf0a18d.zip |
Make sure we only enter pf_route() when undefering in the PF_ROUTETO case.
ok dlg claudio
-rw-r--r-- | sys/net/if_pfsync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 009f797a96d..a7e5ab34736 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.178 2011/11/29 10:17:52 dlg Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.179 2011/12/01 20:43:03 mcbride Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1768,7 +1768,7 @@ pfsync_undefer(struct pfsync_deferral *pd, int drop) if (drop) m_freem(pd->pd_m); else { - if (pd->pd_st->rule.ptr->rt) { + if (pd->pd_st->rule.ptr->rt == PF_ROUTETO) { switch (pd->pd_st->key[PF_SK_WIRE]->af) { #ifdef INET case AF_INET: |