PFSTATE_NOSYNC goes onto state_flags, not sync_state;

this prevents: panic: pfsync_delete_state: unexpected sync state 8

Reviewed by:		kp
Approved by:		re (gjb)
MFC after:		2 weeks
Sponsored by:		The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D6942
This commit is contained in:
Bjoern A. Zeeb 2016-06-23 21:42:43 +00:00
parent a0429b5459
commit a8e8c57443
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302157

View File

@ -3362,7 +3362,7 @@ pf_clear_states(void)
LIST_FOREACH(s, &ih->states, entry) {
s->timeout = PFTM_PURGE;
/* Don't send out individual delete messages. */
s->sync_state = PFSTATE_NOSYNC;
s->state_flags |= PFSTATE_NOSYNC;
pf_unlink_state(s, PF_ENTER_LOCKED);
goto relock;
}