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 Jun 10, 2024
1 parent e42afd4 commit 0e8c473
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 ((uint32_t)SCTIME_SECS(ts) > cu->expire || cu->error) {
if ((uint32_t)SCTIME_SECS(ts) >= cu->expire || cu->error) {
if (SC_ATOMIC_GET(cu->hdata->use_cnt) == 0) {
DEBUG_VALIDATE_BUG_ON(cu->files == NULL);
return true;
Expand Down

0 comments on commit 0e8c473

Please sign in to comment.