commit | 922f53864fddc521155ceca7c7d9e7968545d80f | [log] [tgz] |
---|---|---|
author | Tedd Ho-Jeong An <tedd.an@intel.com> | Fri Mar 08 15:28:36 2019 -0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Sat Mar 09 10:50:25 2019 -0500 |
tree | 8f0d20fa29d7297fe23eb9c8f6fdcd9cdca445a3 | |
parent | b5582fa6c65dc01509e513fe0ee555c34546e90b [diff] |
tests: net: mqtt: Fix the error handling aftre read If the rc = -EAGAIN from mqtt_read_publich_payload(), it shouldn't be used in memcpy() since it is a negative value, and instead, it should try to read again. Fix: #13825 Coverity-CID: 191002 Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>