Skip to content

Commit

Permalink
DPI: use correct loop variable
Browse files Browse the repository at this point in the history
Use loop variable 'j' instead of 'i' during flow cleanup.

Co-authored-by: Subhajit Chatterjee <[email protected]>
Signed-off-by: Shubham Shrivastava <[email protected]>
  • Loading branch information
shubham-cdot and subhajit-cdot committed Jan 13, 2021
1 parent 42d292f commit 54da769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npf/dpi/dpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54da769

Please sign in to comment.