From 1cf65c32365f1aba2cb98f9d5506c0793b13a059 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Sat, 29 Nov 2014 17:45:41 +0100 Subject: [PATCH] ID:344 - Fix HPM.2 long message support Due to a typo in the result checking. HPM.2 long message support detection does not work. --- lib/hpm2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hpm2.c b/lib/hpm2.c index 6cb2f80..6420629 100644 --- a/lib/hpm2.c +++ b/lib/hpm2.c @@ -213,8 +213,8 @@ int hpm2_get_lan_channel_capabilities(struct ipmi_intf * intf, /* send */ rsp = intf->sendrecv(intf, &req); - if (rsp) { - lprintf(LOG_NOTICE, "Error sending request"); + if (!rsp) { + lprintf(LOG_NOTICE, "Error sending request."); return -1; }