From: Pablo Neira Ayuso Date: Mon, 15 Jul 2013 10:14:55 +0000 (+0200) Subject: libxt_recent: restore minimum value for --seconds X-Git-Tag: v1.4.20~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88b73a2bad9fc02355fad70698cc2c9469048abc;p=thirdparty%2Fiptables.git libxt_recent: restore minimum value for --seconds This checking was accidentally removed in (74ded72 libxt_recent: add --mask netmask). Signed-off-by: Pablo Neira Ayuso --- diff --git a/extensions/libxt_recent.c b/extensions/libxt_recent.c index 42c866cd..b3510d99 100644 --- a/extensions/libxt_recent.c +++ b/extensions/libxt_recent.c @@ -62,7 +62,7 @@ static const struct xt_option_entry recent_opts_v1[] = { {.name = "remove", .id = O_REMOVE, .type = XTTYPE_NONE, .excl = F_ANY_OP, .flags = XTOPT_INVERT}, {.name = "seconds", .id = O_SECONDS, .type = XTTYPE_UINT32, - .flags = XTOPT_PUT, XTOPT_POINTER(s, seconds)}, + .flags = XTOPT_PUT, XTOPT_POINTER(s, seconds), .min = 1}, {.name = "reap", .id = O_REAP, .type = XTTYPE_NONE, .also = F_SECONDS }, {.name = "hitcount", .id = O_HITCOUNT, .type = XTTYPE_UINT32,