diff --git a/src/app-layer-expectation.c b/src/app-layer-expectation.c index e8d4c6af67..ee158e94d2 100644 --- a/src/app-layer-expectation.c +++ b/src/app-layer-expectation.c @@ -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);