commit | 50539d364648834e5c0fac6bceef00646b4fde5d | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Mon Dec 03 09:01:55 2018 -0800 |
committer | Patrick Venture <venture@google.com> | Mon Dec 03 10:19:47 2018 -0800 |
tree | 1d7f97f96120407ff372ea6660b566275e779075 | |
parent | 8aee057be55156d1daec286839029bc1ee511dff [diff] [blame] |
bugfix: ipmi: set dataLen to zero when appropriate On failures (or some silent success), set the return buffer length to 0. Change-Id: I118788ffddd2bfc031b3392db4cf13ab04b49287 Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/main.cpp b/main.cpp index 7bbae28..bc93ddd 100644 --- a/main.cpp +++ b/main.cpp
@@ -53,6 +53,7 @@ validateBlobCommand(&crc, reqBuf, replyCmdBuf, dataLen, &rc); if (command == nullptr) { + (*dataLen) = 0; return rc; }