ftp: fixes leak with duplicate expectation

(cherry picked from commit 68d6922e3c)
pull/6099/head
Philippe Antoine 6 years ago committed by Shivani Bhardwaj
parent 3535cdbc02
commit 1e786f941b

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

Loading…
Cancel
Save