git: 7efa85c12303 - stable/13 - pf: make pfsync_state_import appease an assert in pf_free_state
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Dec 2022 21:11:01 UTC
The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=7efa85c12303c532b3c87d08dc6e6020fb2c18cc commit 7efa85c12303c532b3c87d08dc6e6020fb2c18cc Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-09-06 14:56:29 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2022-12-05 19:27:01 +0000 pf: make pfsync_state_import appease an assert in pf_free_state The newly created state failed to be inserted anywhere. This follows other places. Reviewed by: kp Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 69ce6ae21acd71b8e46d1f22176063e9d243511a) --- sys/netpfil/pf/if_pfsync.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c index e22e0d35f182..33e06eb4c79f 100644 --- a/sys/netpfil/pf/if_pfsync.c +++ b/sys/netpfil/pf/if_pfsync.c @@ -618,6 +618,7 @@ cleanup: cleanup_state: /* pf_state_insert() frees the state keys. */ if (st) { + st->timeout = PFTM_UNLINKED; /* appease an assert */ pf_free_state(st); } return (error);