From 68d6922e3cc47c2608e1ac3614c6bd3a48185a12 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 8 Apr 2021 17:44:01 +0200 Subject: [PATCH] ftp: fixes leak with duplicate expectation --- src/app-layer-expectation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-layer-expectation.c b/src/app-layer-expectation.c index 0408086b3c..4741689aaf 100644 --- a/src/app-layer-expectation.c +++ b/src/app-layer-expectation.c @@ -324,7 +324,7 @@ AppProto AppLayerExpectationHandle(Flow *f, uint8_t flags) alproto = exp->alproto; f->alproto_ts = alproto; f->alproto_tc = alproto; - void *fdata = FlowGetStorageById(f, g_expectation_id); + void *fdata = FlowGetStorageById(f, g_expectation_data_id); if (fdata) { /* We already have an expectation so let's clean this one */ ExpectationDataFree(exp->data); -- 2.47.3