Skip to content

Commit

Permalink
applayer/htp-range: fix off by one in expiry check
Browse files Browse the repository at this point in the history
  • Loading branch information
inashivb authored and victorjulien committed Jul 4, 2024
1 parent c66f1f4 commit a7af371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app-layer-htp-range.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static inline bool ContainerValueRangeTimeout(void *data, const SCTime_t ts)
{
HttpRangeContainerFile *cu = data;
// we only timeout if we have no flow referencing us
if (SCTIME_CMP_GT(ts, cu->expire) || cu->error) {
if (SCTIME_CMP_GTE(ts, cu->expire) || cu->error) {
DEBUG_VALIDATE_BUG_ON(cu->files == NULL);
return true;
}
Expand Down

0 comments on commit a7af371

Please sign in to comment.