forked from acouzens/open5gs
check auth length for sanity
This commit is contained in:
parent
c7856bf3b2
commit
7b5f9520d9
|
@ -522,7 +522,8 @@ void emm_state_authentication(ogs_fsm_t *s, mme_event_t *e)
|
|||
|
||||
CLEAR_MME_UE_TIMER(mme_ue->t3460);
|
||||
|
||||
if (memcmp(authentication_response_parameter->res,
|
||||
if (authentication_response_parameter->length == 0 ||
|
||||
memcmp(authentication_response_parameter->res,
|
||||
mme_ue->xres,
|
||||
authentication_response_parameter->length) != 0) {
|
||||
ogs_log_hexdump(OGS_LOG_WARN,
|
||||
|
|
Loading…
Reference in New Issue