bugfix: return error in 'emm_msg_encode' in case of failure

This commit is contained in:
Cedric Roux
2017-02-01 12:17:39 +01:00
parent 53e416be0b
commit 163c37a5a3
+3
View File
@@ -464,6 +464,9 @@ int emm_msg_encode(EMM_msg *msg, uint8_t *buffer, uint32_t len)
#endif
}
if (encode_result < 0)
LOG_FUNC_RETURN (encode_result);
LOG_FUNC_RETURN (header_result + encode_result);
}