Merge in SNORT/snort3 from ~BSACHDEV/snort3:luafix to master
Squashed commit of the following:
commit
3f1bad59caaea21559a1189d92263fd90da06a9e
Author: bsachdev <bsachdev@cisco.com>
Date: Fri Dec 2 11:43:52 2022 -0500
appid: fixed assert condition for odp_ctxt and odp_thread_local_ctxt
void AppIdContext::pterm()
{
- assert(odp_ctxt);
- odp_ctxt->get_app_info_mgr().cleanup_appid_info_table();
- delete odp_ctxt;
+ if (odp_ctxt)
+ {
+ odp_ctxt->get_app_info_mgr().cleanup_appid_info_table();
+ delete odp_ctxt;
+ }
- assert(odp_thread_local_ctxt);
- delete odp_thread_local_ctxt;
- odp_thread_local_ctxt = nullptr;
+ if (odp_thread_local_ctxt)
+ {
+ delete odp_thread_local_ctxt;
+ odp_thread_local_ctxt = nullptr;
+ }
}
bool AppIdContext::init_appid(SnortConfig* sc, AppIdInspector& inspector)