diff --git a/ipmitool/lib/ipmi_firewall.c b/ipmitool/lib/ipmi_firewall.c index 7636ec3..f205b04 100644 --- a/ipmitool/lib/ipmi_firewall.c +++ b/ipmitool/lib/ipmi_firewall.c @@ -877,6 +877,7 @@ ipmi_firewall_info(struct ipmi_intf * intf, int argc, char ** argv) ret = _gather_info(intf, &p, bmc_fn_support); if (p.command >= 0) { + struct command_support * cmd; if (!((p.lun < 0 || bmc_fn_support->lun[p.lun].support) && (p.netfn < 0 || bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].support) && bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].command[p.command].support)) @@ -886,7 +887,7 @@ ipmi_firewall_info(struct ipmi_intf * intf, int argc, char ** argv) free(bmc_fn_support); return 0; } - struct command_support * cmd = + cmd = &bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].command[p.command]; c = cmd->support; printf("(A)vailable, (C)onfigurable, (E)nabled: | A | C | E |\n"); diff --git a/ipmitool/src/plugins/lanplus/lanplus.c b/ipmitool/src/plugins/lanplus/lanplus.c index 30ebf3d..276455f 100644 --- a/ipmitool/src/plugins/lanplus/lanplus.c +++ b/ipmitool/src/plugins/lanplus/lanplus.c @@ -2456,14 +2456,16 @@ ipmi_lanplus_recv_sol(struct ipmi_intf * intf) { struct ipmi_rs * rsp = ipmi_lan_poll_recv(intf); - ack_sol_packet(intf, rsp); - - /* - * Remembers the data sent, and alters the data to just - * include the new stuff. - */ - check_sol_packet_for_new_data(intf, rsp); + if(rsp->session.authtype != 0) + { + ack_sol_packet(intf, rsp); + /* + * Remembers the data sent, and alters the data to just + * include the new stuff. + */ + check_sol_packet_for_new_data(intf, rsp); + } return rsp; }