git: 69ce6ae21acd - main - pf: make pfsync_state_import appease an assert in pf_free_state
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 06 Sep 2022 15:02:40 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=69ce6ae21acd71b8e46d1f22176063e9d243511a commit 69ce6ae21acd71b8e46d1f22176063e9d243511a Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-09-06 14:56:29 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-09-06 15:00:46 +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") --- 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 bf4b9322df56..9cc25c83bd06 100644 --- a/sys/netpfil/pf/if_pfsync.c +++ b/sys/netpfil/pf/if_pfsync.c @@ -611,6 +611,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);