[AUSF] Check length of SUCI_or_SUPI before trying to process (#3742)

* Check length of supi/suci

* check all the things
This commit is contained in:
jmasterfunk84
2025-02-27 16:07:24 -06:00
committed by GitHub
parent 1b21eba81e
commit f98d0a780d

View File

@@ -135,7 +135,8 @@ void ausf_state_operational(ogs_fsm_t *s, ausf_event_t *e)
SWITCH(message.h.method)
CASE(OGS_SBI_HTTP_METHOD_POST)
if (message.AuthenticationInfo &&
message.AuthenticationInfo->supi_or_suci) {
message.AuthenticationInfo->supi_or_suci &&
strlen(message.AuthenticationInfo->supi_or_suci)) {
ausf_ue = ausf_ue_find_by_suci_or_supi(
message.AuthenticationInfo->supi_or_suci);
if (!ausf_ue) {