diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-12-30 12:03:39 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-30 12:03:39 +0100 |
commit | c3d0a7b800277fcc4401f19a584edf1d7dfaeda9 (patch) | |
tree | 65d2d87814546c348cd68575f78b98f99927681b /extensions/libxt_rateest.c | |
parent | cea9f71f5618250a38acb21c31fbbf93a752f7d4 (diff) |
rateest: guard against segfault
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libxt_rateest.c')
-rw-r--r-- | extensions/libxt_rateest.c | 3 |
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; } |