summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/libxt_rateest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/libxt_rateest.c b/extensions/libxt_rateest.c
index ebea4376..333239d9 100644
--- a/extensions/libxt_rateest.c
+++ b/extensions/libxt_rateest.c
@@ -306,6 +306,9 @@ rateest_final_check(unsigned int flags)
{
struct xt_rateest_match_info *info = rateest_info;
+ if (info == NULL)
+ exit_error(PARAMETER_PROBLEM, "rateest match: "
+ "you need to specify some flags");
if (!(info->flags & XT_RATEEST_MATCH_REL))
info->flags |= XT_RATEEST_MATCH_ABS;
}