ID:399 - Fixed channel getciphers command.

'channel getciphers' command uses wrong command-line argument
when parsing the target channel number. This patch fixes
this problem.
This commit is contained in:
Dmitry Bazhenov 2015-10-12 12:56:26 +05:00 committed by Zdenek Styblik
parent 718a242205
commit c56b5c9667

View File

@ -882,7 +882,7 @@ ipmi_channel_main(struct ipmi_intf *intf, int argc, char **argv)
return (-1);
}
if (argc == 3) {
if (is_ipmi_channel_num(argv[1], &channel) != 0) {
if (is_ipmi_channel_num(argv[2], &channel) != 0) {
return (-1);
}
}