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,10 +2117,12 @@ static int _emm_as_establish_rej(const emm_as_establish_t *msg, ...@@ -2117,10 +2117,12 @@ 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;
nas_msg.header.sequence_number = emm_security_context->dl_count.seq_num; if (emm_security_context) {
LOG_TRACE(DEBUG, nas_msg.header.sequence_number = emm_security_context->dl_count.seq_num;
"Set nas_msg.header.sequence_number -> %u", LOG_TRACE(DEBUG,
nas_msg.header.sequence_number); "Set nas_msg.header.sequence_number -> %u",
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(
......
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