Commit cead17f2 authored by wujing's avatar wujing Committed by masayuki.harada

Fix openair3/NAS/UE cppcheck error

parent f006866c
......@@ -443,15 +443,15 @@ static int _emm_as_data_ind(nas_user_t *user, const emm_as_data_t *msg, int *emm
EPS_MOBILITY_MANAGEMENT_MESSAGE) {
/* Process EMM data */
rc = _emm_as_recv(user, plain_msg, bytes, emm_cause);
free(plain_msg);
} else if (header.protocol_discriminator ==
EPS_SESSION_MANAGEMENT_MESSAGE) {
const OctetString data = {bytes, (uint8_t *)plain_msg};
/* Foward ESM data to EPS session management */
rc = lowerlayer_data_ind(user, &data);
}
free(plain_msg);
}
}
} else {
/* Process successfull lower layer transfer indication */
rc = lowerlayer_success(user);
......
......@@ -296,6 +296,8 @@ int emm_proc_security_mode_command(nas_user_t *user, int native_ksi, int ksi,
else {
/* Setup EMM cause code */
emm_cause = EMM_CAUSE_SECURITY_MODE_REJECTED;
}
}
/* Release security mode control internal data */
if (security_data->kenb.value) {
......@@ -303,8 +305,6 @@ int emm_proc_security_mode_command(nas_user_t *user, int native_ksi, int ksi,
security_data->kenb.value = NULL;
security_data->kenb.length = 0;
}
}
}
/* Setup EMM procedure handler to be executed upon receiving
* lower layer notification */
......
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