From: Justin Viiret Date: Mon, 23 May 2016 03:42:05 +0000 (+1000) Subject: app-layer-detect-proto: pass mpm_ctx to DestroyCtx X-Git-Tag: suricata-3.1RC1~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88b50d2c34f49eb8bb21a7b4556808f52a8f2c97;p=thirdparty%2Fsuricata.git app-layer-detect-proto: pass mpm_ctx to DestroyCtx The MPM DestroyCtx function accepts the MpmCtx, not the ctx pointer inside it. --- diff --git a/src/app-layer-detect-proto.c b/src/app-layer-detect-proto.c index aeed07259a..c9b2a5e33e 100644 --- a/src/app-layer-detect-proto.c +++ b/src/app-layer-detect-proto.c @@ -1558,7 +1558,7 @@ int AppLayerProtoDetectDeSetup(void) for (ipproto_map = 0; ipproto_map < FLOW_PROTO_DEFAULT; ipproto_map++) { for (dir = 0; dir < 2; dir++) { pm_ctx = &alpd_ctx.ctx_ipp[ipproto_map].ctx_pm[dir]; - mpm_table[pm_ctx->mpm_ctx.mpm_type].DestroyCtx(pm_ctx->mpm_ctx.ctx); + mpm_table[pm_ctx->mpm_ctx.mpm_type].DestroyCtx(&pm_ctx->mpm_ctx); for (id = 0; id < pm_ctx->max_sig_id; id++) { sig = pm_ctx->map[id]; AppLayerProtoDetectPMFreeSignature(sig);