mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
pfsync: add missing bucket lock
pfsync_q_ins() expects us to hold the bucket lock, but when we enter it
from pfsync_state_import() we don't.
MFC after: 2 weeks
(cherry picked from commit 0ed5f66c5a)
This commit is contained in:
parent
c14288232a
commit
f7112de201
1 changed files with 4 additions and 0 deletions
|
|
@ -598,7 +598,11 @@ pfsync_state_import(struct pfsync_state *sp, u_int8_t flags)
|
|||
if (!(flags & PFSYNC_SI_IOCTL)) {
|
||||
st->state_flags &= ~PFSTATE_NOSYNC;
|
||||
if (st->state_flags & PFSTATE_ACK) {
|
||||
struct pfsync_bucket *b = pfsync_get_bucket(sc, st);
|
||||
PFSYNC_BUCKET_LOCK(b);
|
||||
pfsync_q_ins(st, PFSYNC_S_IACK, true);
|
||||
PFSYNC_BUCKET_UNLOCK(b);
|
||||
|
||||
pfsync_push_all(sc);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue