The branch stable/12 has been updated by kp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=577214cb0ac6c1433b39503af5b7b50e8f9985d5

commit 577214cb0ac6c1433b39503af5b7b50e8f9985d5
Author:     Mateusz Guzik <[email protected]>
AuthorDate: 2022-09-06 14:56:29 +0000
Commit:     Kristof Provost <[email protected]>
CommitDate: 2022-12-05 21:10:15 +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 88b85398db58..88e0831e82de 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -619,6 +619,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);

Reply via email to