Commit 6e712131 authored by Bin Xiao's avatar Bin Xiao

add NAS message integrity mac !=0

parent 29c938de
......@@ -314,7 +314,7 @@ int nas_message_decrypt(
emm_security_context);
/* Check NAS message integrity */
if (mac != header->message_authentication_code) {
if ((mac != 0) && (mac != header->message_authentication_code)) {
LOG_TRACE(DEBUG,
"MAC Failure MSG:%08X(%u) <> INT ALGO:%08X(%u) Type of security context %u",
......
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