From: Victor Julien Date: Wed, 9 Jul 2014 06:55:47 +0000 (+0200) Subject: packet recycle: remove mutex destroy/init X-Git-Tag: suricata-2.1beta2~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1104%2Fhead;p=thirdparty%2Fsuricata.git packet recycle: remove mutex destroy/init This was necessary earlier when there was a memset involved. --- diff --git a/src/decode.h b/src/decode.h index f36fdded23..4f83a8be79 100644 --- a/src/decode.h +++ b/src/decode.h @@ -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; \