mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 14:20: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
|
|
@ -216,7 +216,6 @@ OpenAPI_plmn_restriction_1_t *OpenAPI_plmn_restriction_1_parseFromJSON(cJSON *pl
|
|||
OpenAPI_area_1_t *forbidden_areasItem = OpenAPI_area_1_parseFromJSON(forbidden_areas_local);
|
||||
if (!forbidden_areasItem) {
|
||||
ogs_error("No forbidden_areasItem");
|
||||
OpenAPI_list_free(forbidden_areasList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(forbidden_areasList, forbidden_areasItem);
|
||||
|
|
@ -226,6 +225,10 @@ OpenAPI_plmn_restriction_1_t *OpenAPI_plmn_restriction_1_parseFromJSON(cJSON *pl
|
|||
service_area_restriction = cJSON_GetObjectItemCaseSensitive(plmn_restriction_1JSON, "serviceAreaRestriction");
|
||||
if (service_area_restriction) {
|
||||
service_area_restriction_local_nonprim = OpenAPI_service_area_restriction_1_parseFromJSON(service_area_restriction);
|
||||
if (!service_area_restriction_local_nonprim) {
|
||||
ogs_error("OpenAPI_service_area_restriction_1_parseFromJSON failed [service_area_restriction]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
core_network_type_restrictions = cJSON_GetObjectItemCaseSensitive(plmn_restriction_1JSON, "coreNetworkTypeRestrictions");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue