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 committed Jul 2, 2024
1 parent abed62e commit 85f76ed
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 85f76ed

Please sign in to comment.