mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +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
|
|
@ -136,6 +136,10 @@ OpenAPI_emergency_info_t *OpenAPI_emergency_info_parseFromJSON(cJSON *emergency_
|
|||
pgw_ip_address = cJSON_GetObjectItemCaseSensitive(emergency_infoJSON, "pgwIpAddress");
|
||||
if (pgw_ip_address) {
|
||||
pgw_ip_address_local_nonprim = OpenAPI_ip_address_parseFromJSON(pgw_ip_address);
|
||||
if (!pgw_ip_address_local_nonprim) {
|
||||
ogs_error("OpenAPI_ip_address_parseFromJSON failed [pgw_ip_address]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
smf_instance_id = cJSON_GetObjectItemCaseSensitive(emergency_infoJSON, "smfInstanceId");
|
||||
|
|
@ -157,6 +161,10 @@ OpenAPI_emergency_info_t *OpenAPI_emergency_info_parseFromJSON(cJSON *emergency_
|
|||
plmn_id = cJSON_GetObjectItemCaseSensitive(emergency_infoJSON, "plmnId");
|
||||
if (plmn_id) {
|
||||
plmn_id_local_nonprim = OpenAPI_plmn_id_parseFromJSON(plmn_id);
|
||||
if (!plmn_id_local_nonprim) {
|
||||
ogs_error("OpenAPI_plmn_id_parseFromJSON failed [plmn_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
emergency_info_local_var = OpenAPI_emergency_info_create (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue