Commit 2c4b6169 authored by Lionel Gauthier's avatar Lionel Gauthier

Null pointer

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5635 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 2f46f078
...@@ -2117,11 +2117,13 @@ static int _emm_as_establish_rej(const emm_as_establish_t *msg, ...@@ -2117,11 +2117,13 @@ static int _emm_as_establish_rej(const emm_as_establish_t *msg,
#endif #endif
if (emm_ctx) { if (emm_ctx) {
emm_security_context = emm_ctx->security; emm_security_context = emm_ctx->security;
if (emm_security_context) {
nas_msg.header.sequence_number = emm_security_context->dl_count.seq_num; nas_msg.header.sequence_number = emm_security_context->dl_count.seq_num;
LOG_TRACE(DEBUG, LOG_TRACE(DEBUG,
"Set nas_msg.header.sequence_number -> %u", "Set nas_msg.header.sequence_number -> %u",
nas_msg.header.sequence_number); nas_msg.header.sequence_number);
} }
}
/* Encode the initial NAS information message */ /* Encode the initial NAS information message */
int bytes = _emm_as_encode( int bytes = _emm_as_encode(
&as_msg->nasMsg, &as_msg->nasMsg,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment