Fix openair3/NAS/UE cppcheck error
This commit is contained in:
@@ -296,16 +296,16 @@ 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) {
|
||||
free(security_data->kenb.value);
|
||||
security_data->kenb.value = NULL;
|
||||
security_data->kenb.length = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Release security mode control internal data */
|
||||
if (security_data->kenb.value) {
|
||||
free(security_data->kenb.value);
|
||||
security_data->kenb.value = NULL;
|
||||
security_data->kenb.length = 0;
|
||||
}
|
||||
|
||||
/* Setup EMM procedure handler to be executed upon receiving
|
||||
* lower layer notification */
|
||||
rc = emm_proc_lowerlayer_initialize(user->lowerlayer_data, NULL, NULL, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user