Clear the PKT_ALLOC flag when storing Packets into the Packet pool.

The PKT_ALLOC flag is set by PacketGetFromAlloc(), which needs to be
cleared for Packets in the Packet Pool, so clear the flag here.
pull/360/merge
Ken Steele 12 years ago committed by Victor Julien
parent 9c7b411a5d
commit 9d677ea006

@ -96,6 +96,10 @@ void PacketPoolStorePacket(Packet *p) {
exit(1);
}
/* Clear the PKT_ALLOC flag, since that indicates to push back
* onto the ring buffer. */
p->flags &= ~PKT_ALLOC;
RingBufferMrMwPut(ringbuffer, (void *)p);
SCLogDebug("buffersize %u", RingBufferSize(ringbuffer));
}

Loading…
Cancel
Save