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; }