mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
[SBI] Modified Exception handler on error (#2169)
This commit is contained in:
parent
5f377d0126
commit
6b17bffdfd
646 changed files with 4920 additions and 735 deletions
|
|
@ -643,6 +643,10 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
goto end;
|
||||
}
|
||||
guami_local_nonprim = OpenAPI_guami_parseFromJSON(guami);
|
||||
if (!guami_local_nonprim) {
|
||||
ogs_error("OpenAPI_guami_parseFromJSON failed [guami]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
backup_amf_info = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "backupAmfInfo");
|
||||
if (backup_amf_info) {
|
||||
|
|
@ -662,7 +666,6 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
OpenAPI_backup_amf_info_t *backup_amf_infoItem = OpenAPI_backup_amf_info_parseFromJSON(backup_amf_info_local);
|
||||
if (!backup_amf_infoItem) {
|
||||
ogs_error("No backup_amf_infoItem");
|
||||
OpenAPI_list_free(backup_amf_infoList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(backup_amf_infoList, backup_amf_infoItem);
|
||||
|
|
@ -707,6 +710,10 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
eps_interworking_info = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "epsInterworkingInfo");
|
||||
if (eps_interworking_info) {
|
||||
eps_interworking_info_local_nonprim = OpenAPI_eps_interworking_info_parseFromJSON(eps_interworking_info);
|
||||
if (!eps_interworking_info_local_nonprim) {
|
||||
ogs_error("OpenAPI_eps_interworking_info_parseFromJSON failed [eps_interworking_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
ue_srvcc_capability = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "ueSrvccCapability");
|
||||
|
|
@ -728,11 +735,19 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
vgmlc_address = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "vgmlcAddress");
|
||||
if (vgmlc_address) {
|
||||
vgmlc_address_local_nonprim = OpenAPI_vgmlc_address_parseFromJSON(vgmlc_address);
|
||||
if (!vgmlc_address_local_nonprim) {
|
||||
ogs_error("OpenAPI_vgmlc_address_parseFromJSON failed [vgmlc_address]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
context_info = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "contextInfo");
|
||||
if (context_info) {
|
||||
context_info_local_nonprim = OpenAPI_context_info_parseFromJSON(context_info);
|
||||
if (!context_info_local_nonprim) {
|
||||
ogs_error("OpenAPI_context_info_parseFromJSON failed [context_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
no_ee_subscription_ind = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "noEeSubscriptionInd");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue