mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID: 264 - incorrect array index in get_lan_param_select()
Commit fixes incorrect array index in get_lan_param_select(). The param value matches the cmd in the lan_param struct, but it's not the same as the ipmi_lan_params[] array index. Here is an example of what I mean. This problem becomes apparent with the OEM extensions which use values 192+. Commit for Jeff Bastian
This commit is contained in:
parent
a771107c47
commit
f8cecaa71a
@ -126,7 +126,7 @@ get_lan_param_select(struct ipmi_intf * intf, uint8_t chan, int param, int selec
|
||||
|
||||
for (i = 0; ipmi_lan_params[i].cmd != (-1); i++) {
|
||||
if (ipmi_lan_params[i].cmd == param) {
|
||||
p = &ipmi_lan_params[param];
|
||||
p = &ipmi_lan_params[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user