Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2019 20:50:52 +0000 (UTC)
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r498744 - in head/security/snort3: . files
Message-ID:  <201904122050.x3CKoq2O087941@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bofh
Date: Fri Apr 12 20:50:51 2019
New Revision: 498744
URL: https://svnweb.freebsd.org/changeset/ports/498744

Log:
  security/snort3: Update version 3.0.0-251=>3.0.0-252

Added:
  head/security/snort3/files/
  head/security/snort3/files/patch-src_file__api_file__cache.cc   (contents, props changed)
Modified:
  head/security/snort3/Makefile
  head/security/snort3/distinfo

Modified: head/security/snort3/Makefile
==============================================================================
--- head/security/snort3/Makefile	Fri Apr 12 20:39:43 2019	(r498743)
+++ head/security/snort3/Makefile	Fri Apr 12 20:50:51 2019	(r498744)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	snort
-DISTVERSION=	3.0.0-251
+DISTVERSION=	3.0.0-252
 PORTEPOCH=	1
 CATEGORIES=	security
 PKGNAMESUFFIX=	3

Modified: head/security/snort3/distinfo
==============================================================================
--- head/security/snort3/distinfo	Fri Apr 12 20:39:43 2019	(r498743)
+++ head/security/snort3/distinfo	Fri Apr 12 20:50:51 2019	(r498744)
@@ -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

Added: head/security/snort3/files/patch-src_file__api_file__cache.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/snort3/files/patch-src_file__api_file__cache.cc	Fri Apr 12 20:50:51 2019	(r498744)
@@ -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())



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904122050.x3CKoq2O087941>