summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org>2007-02-13 04:06:45 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org>2007-02-13 04:06:45 +0000
commitbce36a2306ae7c8c417334c53c5aec3e92378815 (patch)
tree13678db64751019f2f3de232a69a55f2f458ab18
parent4fd80b752708437c96133bfcdf7a503e538a3997 (diff)
Error if no ICMP type is specified even though user intended
to use icmp match.
-rw-r--r--extensions/libipt_icmp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/libipt_icmp.c b/extensions/libipt_icmp.c
index 8f22d05..ce46837 100644
--- a/extensions/libipt_icmp.c
+++ b/extensions/libipt_icmp.c
@@ -284,6 +284,9 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
/* Final check; we don't care. */
static void final_check(unsigned int flags)
{
+ if (!flags)
+ exit_error(PARAMETER_PROBLEM,
+ "icmp match: You must specify `--icmp-type'");
}
static struct iptables_match icmp = {