]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4568: file_api: add pending expire time reset for FileInfo
authorOleg Torubara -X (otorubar - SOFTSERVE INC at Cisco) <otorubar@cisco.com>
Wed, 15 Jan 2025 22:26:50 +0000 (22:26 +0000)
committerSteve Chew (stechew) <stechew@cisco.com>
Wed, 15 Jan 2025 22:26:50 +0000 (22:26 +0000)
Merge in SNORT/snort3 from ~OTORUBAR/snort3:handle_timeouts to master

Squashed commit of the following:

commit 4309f844ebfae650ff15bb310948d25dcb9ce449
Author: otorubar <otorubar@cisco.com>
Date:   Mon Jan 13 09:14:43 2025 -0800

    file_api: add pending expire time reset for FileInfo

src/file_api/file_lib.cc

index 592e8791d860995041559b3925025b1a3333b4f5..09aa3a24d5b6df335342d594065dccf80a1ab6d6 100644 (file)
@@ -518,6 +518,8 @@ void FileInfo::reset()
     reset_sha();
     if (is_file_name_set())
         unset_file_name();
+    pending_expire_time.tv_sec = 0;
+    pending_expire_time.tv_usec = 0;
 }
 
 void FileInfo::set_re_eval()