]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer-detect-proto: pass mpm_ctx to DestroyCtx
authorJustin Viiret <justin.viiret@intel.com>
Mon, 23 May 2016 03:42:05 +0000 (13:42 +1000)
committerVictor Julien <victor@inliniac.net>
Fri, 27 May 2016 13:13:54 +0000 (15:13 +0200)
The MPM DestroyCtx function accepts the MpmCtx, not the ctx pointer
inside it.

src/app-layer-detect-proto.c

index aeed07259a6031688604aa94f0b4958818c50a04..c9b2a5e33eb90bf7d3c01f5bffe6183d62f6df4f 100644 (file)
@@ -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);