ftp: fixes leak with duplicate expectation

(cherry picked from commit 68d6922e3c)
pull/6100/head
Philippe Antoine 5 years ago committed by Jeff Lucovsky
parent b46125a64b
commit f57dbb800a

@ -325,7 +325,7 @@ AppProto AppLayerExpectationHandle(Flow *f, int direction)
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);

Loading…
Cancel
Save