mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Fix compiling error
This commit is contained in:
parent
ee59c4d0f1
commit
adef82354e
@ -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");
|
||||
|
@ -2456,6 +2456,8 @@ ipmi_lanplus_recv_sol(struct ipmi_intf * intf)
|
||||
{
|
||||
struct ipmi_rs * rsp = ipmi_lan_poll_recv(intf);
|
||||
|
||||
if(rsp->session.authtype != 0)
|
||||
{
|
||||
ack_sol_packet(intf, rsp);
|
||||
|
||||
/*
|
||||
@ -2463,7 +2465,7 @@ ipmi_lanplus_recv_sol(struct ipmi_intf * intf)
|
||||
* include the new stuff.
|
||||
*/
|
||||
check_sol_packet_for_new_data(intf, rsp);
|
||||
|
||||
}
|
||||
return rsp;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user