diff --git a/src/npf/dpi/dpi.c b/src/npf/dpi/dpi.c index cd97de9b..f1a61684 100644 --- a/src/npf/dpi/dpi.c +++ b/src/npf/dpi/dpi.c @@ -363,7 +363,7 @@ dpi_session_first_packet(struct npf_session *se, struct npf_cache *npc, free_flows: for (unsigned int j = 0; j < i; j++) { - struct flow_procs_tup *tup = &flow->flows[i]; + struct flow_procs_tup *tup = &flow->flows[j]; if (!tup) continue; if (!tup->procs)