Skip to content

Commit

Permalink
http: fix condition check
Browse files Browse the repository at this point in the history
Ticket: 7309

Do not use a constant expression in a condition
  • Loading branch information
catenacyber authored and victorjulien committed Oct 10, 2024
1 parent d5dd549 commit 76527dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app-layer-htp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ static void FlagDetectStateNewFile(HtpTxUserData *tx, int dir)
if (dir == STREAM_TOSERVER) {
SCLogDebug("DETECT_ENGINE_STATE_FLAG_FILE_NEW set");
tx->tx_data.de_state->dir_state[0].flags |= DETECT_ENGINE_STATE_FLAG_FILE_NEW;
} else if (STREAM_TOCLIENT) {
} else if (dir == STREAM_TOCLIENT) {
SCLogDebug("DETECT_ENGINE_STATE_FLAG_FILE_NEW set");
tx->tx_data.de_state->dir_state[1].flags |= DETECT_ENGINE_STATE_FLAG_FILE_NEW;
}
Expand Down

0 comments on commit 76527dd

Please sign in to comment.