Skip to content
Snippets Groups Projects
Commit 163c37a5 authored by Cédric Roux's avatar Cédric Roux
Browse files

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

parent 53e416be
No related branches found
No related tags found
No related merge requests found
...@@ -464,6 +464,9 @@ int emm_msg_encode(EMM_msg *msg, uint8_t *buffer, uint32_t len) ...@@ -464,6 +464,9 @@ int emm_msg_encode(EMM_msg *msg, uint8_t *buffer, uint32_t len)
#endif #endif
} }
if (encode_result < 0)
LOG_FUNC_RETURN (encode_result);
LOG_FUNC_RETURN (header_result + encode_result); LOG_FUNC_RETURN (header_result + encode_result);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment