packet recycle: remove mutex destroy/init

This was necessary earlier when there was a memset involved.
pull/1104/head
Victor Julien 11 years ago
parent ed0b75e1e9
commit 3ee504a3dc

@ -654,7 +654,6 @@ typedef struct DecodeThreadVars_
/**
* \brief Recycle a packet structure for reuse.
* \todo the mutex destroy & init is necessary because of the memset, reconsider
*/
#define PACKET_REINIT(p) do { \
CLEAR_ADDR(&(p)->src); \
@ -712,8 +711,6 @@ typedef struct DecodeThreadVars_
(p)->pcap_cnt = 0; \
(p)->tunnel_rtv_cnt = 0; \
(p)->tunnel_tpr_cnt = 0; \
SCMutexDestroy(&(p)->tunnel_mutex); \
SCMutexInit(&(p)->tunnel_mutex, NULL); \
(p)->events.cnt = 0; \
AppLayerDecoderEventsResetEvents((p)->app_layer_events); \
(p)->next = NULL; \

Loading…
Cancel
Save