diff --git a/src/app-layer.c b/src/app-layer.c index 81ab7e49cb..06b65448af 100644 --- a/src/app-layer.c +++ b/src/app-layer.c @@ -570,6 +570,8 @@ void AppLayerDestroyCtxThread(void *tctx) SCEnter(); AppLayerCtxThread *app_tctx = (AppLayerCtxThread *)tctx; + if (app_tctx == NULL) + SCReturn; if (app_tctx->alpd_tctx != NULL) AppLayerProtoDetectDestroyCtxThread(app_tctx->alpd_tctx);