summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-05-25 00:11:48 +0200
committerJan Engelhardt <jengelh@medozas.de>2011-05-25 00:38:55 +0200
commit089585f14fda80508e26ea019703add07cb72f64 (patch)
tree2888926665fcbb6195065d2e297e1419bc201029
parent6944f2c8190f1c4319aeac748470c71b0ba45025 (diff)
libxt_NFQUEUE: avoid double attempt at parsing
Fixes this error: NFQUEUE: option "--queue-num" can only be used once. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r--extensions/libxt_NFQUEUE.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/extensions/libxt_NFQUEUE.c b/extensions/libxt_NFQUEUE.c
index a86c88a3..71ead8d6 100644
--- a/extensions/libxt_NFQUEUE.c
+++ b/extensions/libxt_NFQUEUE.c
@@ -81,14 +81,11 @@ static void NFQUEUE_parse_v2(struct xt_option_call *cb)
{
struct xt_NFQ_info_v2 *info = cb->data;
- xtables_option_parse(cb);
+ NFQUEUE_parse_v1(cb);
switch (cb->entry->id) {
case O_QUEUE_BYPASS:
info->bypass = 1;
break;
- default:
- NFQUEUE_parse_v1(cb);
- break;
}
}