app-layer-detect-proto: pass mpm_ctx to DestroyCtx

The MPM DestroyCtx function accepts the MpmCtx, not the ctx pointer
inside it.
pull/2115/head
Justin Viiret 10 years ago committed by Victor Julien
parent 31d8d4b0a1
commit 88b50d2c34

@ -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);

Loading…
Cancel
Save