From: sashan Date: Mon, 5 Jun 2023 08:37:27 +0000 (+0000) Subject: pf_remove_state() should not attempt to remove state which X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0c23d0017e21171a8b288b32ed15018ecd360fed;p=openbsd pf_remove_state() should not attempt to remove state which is already removed. OK dlg@ --- 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);