summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-05-30 12:44:43 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-05-30 12:48:17 +0200
commit96c42d4c46df3edbd41fa47b860fba217f03cfeb (patch)
tree409cfb2522c2dbc320431173367bd6035c739665
parentaef9c366d1761fd2d2013250df699f3dd5a4b708 (diff)
extensions: libxt_LED: fix parsing of delay
Closes bugzilla: https://bugzilla.netfilter.org/show_bug.cgi?id=825 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--extensions/libxt_LED.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/libxt_LED.c b/extensions/libxt_LED.c
index e6cf8497..8622c379 100644
--- a/extensions/libxt_LED.c
+++ b/extensions/libxt_LED.c
@@ -49,7 +49,6 @@ static void LED_help(void)
static void LED_parse(struct xt_option_call *cb)
{
struct xt_led_info *led = cb->data;
- unsigned int delay;
xtables_option_parse(cb);
switch (cb->entry->id) {
@@ -60,7 +59,7 @@ static void LED_parse(struct xt_option_call *cb)
case O_LED_DELAY:
if (strncasecmp(cb->arg, "inf", 3) == 0)
led->delay = -1;
- else if (!xtables_strtoui(cb->arg, NULL, &delay, 0, UINT32_MAX))
+ else if (!xtables_strtoui(cb->arg, NULL, &led->delay, 0, UINT32_MAX))
xtables_error(PARAMETER_PROBLEM,
"Delay value must be within range 0..%u",
UINT32_MAX);