- Fix rule reset time on arm

PR:		194381
Submitted by:	ronald-lists@klop.ws
MFH:		2014Q4
This commit is contained in:
Dmitry Marakasov 2014-10-15 20:27:29 +00:00
parent 66c97ce6bc
commit 3e2b7a507f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370950
2 changed files with 12 additions and 1 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= bruteblock
PORTVERSION= 0.0.5
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= security
MASTER_SITES= http://samm.kiev.ua/bruteblock/ \
http://mirror.amdmi3.ru/distfiles/

View file

@ -0,0 +1,11 @@
--- bruteblock.c.orig 2006-08-20 08:22:37.000000000 +0200
+++ bruteblock.c 2014-10-15 16:19:19.000000000 +0200
@@ -99,7 +99,7 @@
snprintf(table, sizeof(table), "%d", ipfw2_table_no);
argv[1] = table;
argv[2] = command;
- snprintf(utime, sizeof(utime), "%d",
+ snprintf(utime, sizeof(utime), "%lld",
time(NULL) + reset_ip);
argv[4] = utime;
argv[3] = host;