Skip to contentSkip to conversation

(fix_led_parse_delay) value will now be set

PATCH In review Florian Eckert 2 participants 2 messages Aug 6, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 (fix_led_parse_delay) value will now be set

---
 extensions/libxt_LED.c |    2 ++

1 Datei geändert, 2 Zeilen hinzugefügt(+)

extensions/libxt_LED.c +2 -0
index 8622c37..fd1e726 100644
@@ -63,6 +63,8 @@ static void LED_parse(struct xt_option_call *cb)
 			xtables_error(PARAMETER_PROBLEM,
 				"Delay value must be within range 0..%u",
 				UINT32_MAX);
+		else
+			led->delay=atoi(cb->arg);
 		break;
 	case O_LED_ALWAYS_BLINK:
 		led->always_blink = 1;
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 9 lines · Florian Eckert
---
 extensions/libxt_LED.c |    2 ++

1 Datei geändert, 2 Zeilen hinzugefügt(+)

extensions/libxt_LED.c +0 -0
index 8622c37..fd1e726 100644

extensions/libxt_LED.c static void LED_parse(struct xt_option_call *cb) · line 68

Quoted 6 lines
extensions/libxt_LED.c +2 -0
@@ -63,6 +63,8 @@ static void LED_parse(struct xt_option_call *cb)
 			xtables_error(PARAMETER_PROBLEM,
 				"Delay value must be within range 0..%u",
 				UINT32_MAX);
+		else
+			led->delay=atoi(cb->arg);
 		break;

We have a fix for this already:

http://git.netfilter.org/iptables/commit/?id=96c42d4c46df3edbd41fa47b860fba217f03cfeb

Will be available in upcoming iptables 1.4.20.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html