commit | 7ec0add13801ea07145adf703ad35af10f492a24 | [log] [tgz] |
---|---|---|
author | tomjose <tomjoseph@in.ibm.com> | Mon Jun 27 07:59:28 2016 -0500 |
committer | tomjose <tomjoseph@in.ibm.com> | Thu Jun 30 06:06:40 2016 -0500 |
tree | 299a822734c67d4bca7b7d42d4fd4d86610048be | |
parent | b7bcda57ee39616e8937194d281e2476e6ea8df2 [diff] [blame] |
Fix two issues in Issue #80 Corrected the comment for the Get Channel Info command to reflect the logic in the code. For issue two, corrected the condition for returning the unspecifed error. Fixes openbmc/phosphor-host-ipmid#80
diff --git a/ipmid.C b/ipmid.C index 7354958..374ede2 100644 --- a/ipmid.C +++ b/ipmid.C
@@ -273,7 +273,7 @@ { fprintf(stderr,"ERROR:[0x%X] handling NetFn:[0x%X], Cmd:[0x%X]\n",r, netfn, cmd); - if(r == -1) { + if(r < 0) { response[0] = IPMI_CC_UNSPECIFIED_ERROR; } }