From 35d4b9842345bcaa386457b0304f229c1fd73486 Mon Sep 17 00:00:00 2001 From: "Mike Stepanek (mstepane)" Date: Fri, 24 May 2019 08:49:45 -0400 Subject: [PATCH] Merge pull request #1614 in SNORT/snort3 from ~KATHARVE/snort3:disable_builtin to master Squashed commit of the following: commit 7f281ab48cb16fbc99f619c1ae72841c0886bb85 Author: Katura Harvey Date: Mon May 20 17:49:40 2019 -0400 detection: fix check for disabled rules --- src/detection/detection_engine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/detection_engine.cc b/src/detection/detection_engine.cc index 67eee2d1f..3c3bf1436 100644 --- a/src/detection/detection_engine.cc +++ b/src/detection/detection_engine.cc @@ -660,7 +660,7 @@ static int log_events(void* event, void* user) { en->rtn = getRtnFromOtn(en->otn); - if ( !en->rtn ) + if ( !en->rtn || !en->rtn->enabled() ) return 0; // not enabled } -- 2.47.3