packetpool: signal condition within lock

Completes: dc40a139ac ("packetpool: signal waiter within lock")
pull/9859/head
Victor Julien 2 years ago committed by Victor Julien
parent edc89ce791
commit 41c0526fdc

@ -237,8 +237,8 @@ void PacketPoolReturnPacket(Packet *p)
p->next = pool->return_stack.head;
pool->return_stack.head = p;
pool->return_stack.cnt++;
SCMutexUnlock(&pool->return_stack.mutex);
SCCondSignal(&pool->return_stack.cond);
SCMutexUnlock(&pool->return_stack.mutex);
}
}
}

Loading…
Cancel
Save