From c89be0354a61a299e5e6326b95811d115cd6e3f9 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Tue, 31 May 2016 18:36:32 +0200 Subject: [PATCH] ID:446 - Fix broken firewall reset iterator The netfn structures are populated sequentially in the _gather_info function and they are accessed only by even indices (and to the double of its real length). This results in a segmentation fault if you run * ipmitool firewall reset This patch fixes the behaviour so that the ipmi_firewall_reset function treats the structure the same way as the rest of the code does. Signed-off-by: Boris Ranto --- lib/ipmi_firewall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ipmi_firewall.c b/lib/ipmi_firewall.c index 6d2d3bf..26bfd30 100644 --- a/lib/ipmi_firewall.c +++ b/lib/ipmi_firewall.c @@ -1135,8 +1135,8 @@ ipmi_firewall_reset(struct ipmi_intf * intf, int argc, char ** argv) for (l=0; l