mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-07 11:49:40 +00:00
security/snort3: Update version 3.0.0-251=>3.0.0-252
This commit is contained in:
parent
7089aeef60
commit
94a8d223e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=498744
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= snort
|
||||
DISTVERSION= 3.0.0-251
|
||||
DISTVERSION= 3.0.0-252
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= security
|
||||
PKGNAMESUFFIX= 3
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1554401809
|
||||
SHA256 (snort3-snort3-3.0.0-251_GH0.tar.gz) = d815dd0b59ac6f4ff1fa926b4392e67c33042501553f1375b420181f8c4290a4
|
||||
SIZE (snort3-snort3-3.0.0-251_GH0.tar.gz) = 6374023
|
||||
TIMESTAMP = 1555091119
|
||||
SHA256 (snort3-snort3-3.0.0-252_GH0.tar.gz) = 73790d71f5cfee603cf644fb1e98376b640728a92cedb3830b0066bbd89e035a
|
||||
SIZE (snort3-snort3-3.0.0-252_GH0.tar.gz) = 6376265
|
||||
|
29
security/snort3/files/patch-src_file__api_file__cache.cc
Normal file
29
security/snort3/files/patch-src_file__api_file__cache.cc
Normal file
@ -0,0 +1,29 @@
|
||||
--- src/file_api/file_cache.cc.orig 2019-04-10 20:51:55 UTC
|
||||
+++ src/file_api/file_cache.cc
|
||||
@@ -134,7 +134,7 @@ FileContext* FileCache::add(const FileHashKey& hashKey
|
||||
struct timeval now;
|
||||
packet_gettimeofday(&now);
|
||||
|
||||
- struct timeval time_to_add = { timeout, 0 };
|
||||
+ struct timeval time_to_add = { static_cast<time_t>(timeout), 0 };
|
||||
timeradd(&now, &time_to_add, &new_node.cache_expire_time);
|
||||
|
||||
new_node.file = new FileContext;
|
||||
@@ -187,7 +187,7 @@ FileContext* FileCache::find(const FileHashKey& hashKe
|
||||
}
|
||||
|
||||
struct timeval next_expire_time;
|
||||
- struct timeval time_to_add = { timeout, 0 };
|
||||
+ struct timeval time_to_add = { static_cast<time_t>(timeout), 0 };
|
||||
timeradd(&now, &time_to_add, &next_expire_time);
|
||||
|
||||
// Refresh the timer on the cache.
|
||||
@@ -314,7 +314,7 @@ bool FileCache::apply_verdict(Packet* p, FileContext*
|
||||
|
||||
if (!timerisset(&file_ctx->pending_expire_time))
|
||||
{
|
||||
- add_time = { lookup_timeout, 0 };
|
||||
+ add_time = { static_cast<time_t>(lookup_timeout), 0 };
|
||||
timeradd(&now, &add_time, &file_ctx->pending_expire_time);
|
||||
|
||||
if (PacketTracer::is_active())
|
Loading…
x
Reference in New Issue
Block a user