From 0c23d0017e21171a8b288b32ed15018ecd360fed Mon Sep 17 00:00:00 2001 From: sashan Date: Mon, 5 Jun 2023 08:37:27 +0000 Subject: [PATCH] pf_remove_state() should not attempt to remove state which is already removed. OK dlg@ --- sys/net/pf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/net/pf.c b/sys/net/pf.c index 81939d45c31..b3a655b602b 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.1180 2023/05/15 16:34:56 bluhm Exp $ */ +/* $OpenBSD: pf.c,v 1.1181 2023/06/05 08:37:27 sashan Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1714,6 +1714,9 @@ pf_remove_state(struct pf_state *st) { PF_ASSERT_LOCKED(); + if (st->timeout == PFTM_UNLINKED) + return; + /* handle load balancing related tasks */ pf_postprocess_addr(st); -- 2.20.1