summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2021-02-19 06:12:45 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2021-02-19 06:12:45 +0000
commite9c33824da8718c7aaa67323df0fc7084949b5c8 (patch)
treef2eee36a98fb0b669cd5d38ba80cd73ff9e14227
parent8b9d2a01cb1a12940b562d9322c3090096eec720 (diff)
check the state for PF_ROUTE when undeferring a packet, not the rule.
-rw-r--r--sys/net/if_pfsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index 7dcbc56025a..9f188649497 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.284 2021/02/09 14:06:19 patrick Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.285 2021/02/19 06:12:44 dlg Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -1978,7 +1978,7 @@ pfsync_undefer_notify(struct pfsync_deferral *pd)
struct pf_pdesc pdesc;
struct pf_state *st = pd->pd_st;
- if (st->rule.ptr->rt == PF_ROUTETO) {
+ if (st->rt == PF_ROUTETO) {
if (pf_setup_pdesc(&pdesc, st->key[PF_SK_WIRE]->af,
st->direction, st->kif, pd->pd_m, NULL) != PF_PASS) {
m_freem(pd->pd_m);