From: Michael Altizer (mialtize) Date: Tue, 20 Mar 2018 16:20:34 +0000 (-0400) Subject: Merge pull request #1138 in SNORT/snort3 from offload_crash to master X-Git-Tag: 3.0.0-245~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b581cb28cf50ee7e91c744a9f2828697b1255587;p=thirdparty%2Fsnort3.git Merge pull request #1138 in SNORT/snort3 from offload_crash to master Squashed commit of the following: commit 391fafa2b7a5e3678d582bea4223d887ba96f4e8 Author: Carter Waxman Date: Wed Mar 14 15:27:42 2018 -0400 detection: fixed uninitialized MpseStash --- diff --git a/src/detection/fp_detect.cc b/src/detection/fp_detect.cc index a80003ccf..dfb75728f 100644 --- a/src/detection/fp_detect.cc +++ b/src/detection/fp_detect.cc @@ -735,7 +735,10 @@ public: static const unsigned max = 32; void init() - { if ( enable ) { count = flushed = 0; } } + { + if ( enable ) + count = flushed = 0; + } // this is done in the offload thread bool push(void* user, void* tree, int index, void* list); @@ -1313,6 +1316,7 @@ void fp_offload(Packet* p) { IpsContext* c = p->context; MpseStash* stash = c->stash; + stash->enable_process(); stash->init(); stash->disable_process(); init_match_info(c->otnx, true);