From c56b5c966760c102c5bf16f77a6555147d4ce2dc Mon Sep 17 00:00:00 2001 From: Dmitry Bazhenov Date: Mon, 12 Oct 2015 12:56:26 +0500 Subject: [PATCH] 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. --- lib/ipmi_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ipmi_channel.c b/lib/ipmi_channel.c index 96361eb..5171644 100644 --- a/lib/ipmi_channel.c +++ b/lib/ipmi_channel.c @@ -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); } }