1
0
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:
Muhammad Moinur Rahman 2019-04-12 20:50:51 +00:00
parent 7089aeef60
commit 94a8d223e4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=498744
3 changed files with 33 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= snort
DISTVERSION= 3.0.0-251
DISTVERSION= 3.0.0-252
PORTEPOCH= 1
CATEGORIES= security
PKGNAMESUFFIX= 3

View File

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

View 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())