applayer/htp-range: fix off by one in expiry check

pull/11414/head
Shivani Bhardwaj 9 months ago committed by Victor Julien
parent c66f1f4488
commit a7af371843

@ -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;
}

Loading…
Cancel
Save