]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #1410 in SNORT/snort3 from invalid_lua_crash to master
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Thu, 1 Nov 2018 13:46:18 +0000 (09:46 -0400)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Thu, 1 Nov 2018 13:46:18 +0000 (09:46 -0400)
Squashed commit of the following:

commit cfc5b686c672418318d44760ea8fdff2a9298e40
Author: Pratik Shinde <pshinde2@cisco.com>
Date:   Mon Oct 29 12:27:12 2018 -0400

    appid: Remove detector flows from the list for faulty lua detectors

src/network_inspectors/appid/lua_detector_api.cc

index 540eb2a4504efacb941e0a4bf639f95d84df6e58..9e5b5ca04b1d7590ce81be861193d3d21cdfbfce 100644 (file)
@@ -2542,6 +2542,7 @@ int LuaStateDescriptor::lua_validate(AppIdDiscoveryArgs& args)
         ErrorMessage("lua detector %s: error validating %s\n",
             package_info.name.c_str(), lua_tostring(my_lua_state, -1));
         ldp.pkt = nullptr;
+        LuaDetectorManager::free_detector_flows();
         return APPID_ENULL;
     }