]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
applayer/htp-range: fix off by one in expiry check 11414/head
authorShivani Bhardwaj <shivani@oisf.net>
Mon, 10 Jun 2024 11:58:33 +0000 (17:28 +0530)
committerVictor Julien <victor@inliniac.net>
Thu, 4 Jul 2024 04:37:22 +0000 (06:37 +0200)
src/app-layer-htp-range.c

index b383e41d2938e98a3e20db8128c63c2835b7744d..55587487f57334a29beda6a12534d46dccafdf01 100644 (file)
@@ -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;
     }