From 88b50d2c34f49eb8bb21a7b4556808f52a8f2c97 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Mon, 23 May 2016 13:42:05 +1000 Subject: [PATCH] app-layer-detect-proto: pass mpm_ctx to DestroyCtx The MPM DestroyCtx function accepts the MpmCtx, not the ctx pointer inside it. --- src/app-layer-detect-proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);