commit | 708f7b97a5a7455abf5c3c5a86bf6603c6c7a1c5 | [log] [tgz] |
---|---|---|
author | Nicolas Bouliane <nib@cookinglinux.org> | Sun Jan 02 23:34:48 2005 +0000 |
committer | Patrick McHardy <kaber@trash.net> | Sun Jan 02 23:34:48 2005 +0000 |
tree | 3205bf32ad7d2c935163d48786d810faf52fd830 | |
parent | f46e1afd45c6d735c8bb8f5a67286780ff40be6a [diff] |
Prevent user from using --helper multiple times (Nicolas Bouliane <nib@cookinglinux.org>)
diff --git a/extensions/libipt_helper.c b/extensions/libipt_helper.c index 52047e4..10b39d7 100644 --- a/extensions/libipt_helper.c +++ b/extensions/libipt_helper.c
@@ -44,6 +44,9 @@ switch (c) { case '1': + if (*flags) + exit_error(PARAMETER_PROBLEM, + "helper match: Only use --helper ONCE!"); check_inverse(optarg, &invert, &invert, 0); strncpy(info->name, optarg, 29); info->name[29] = '\0';