mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
[SBI] fix crash when no mandatory item (#1350)
NRF crashed if NFService does not have a versions. Versions are mandatory, we've modified the SBI interface for the safety.
This commit is contained in:
parent
acfcbda8fa
commit
900e888dc1
219 changed files with 2474 additions and 0 deletions
|
|
@ -127,6 +127,12 @@ OpenAPI_location_area_t *OpenAPI_location_area_parseFromJSON(cJSON *location_are
|
|||
}
|
||||
OpenAPI_geographic_area_t *geographic_areasItem = OpenAPI_geographic_area_parseFromJSON(geographic_areas_local_nonprimitive);
|
||||
|
||||
if (!geographic_areasItem) {
|
||||
ogs_error("No geographic_areasItem");
|
||||
OpenAPI_list_free(geographic_areasList);
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_list_add(geographic_areasList, geographic_areasItem);
|
||||
}
|
||||
}
|
||||
|
|
@ -150,6 +156,12 @@ OpenAPI_location_area_t *OpenAPI_location_area_parseFromJSON(cJSON *location_are
|
|||
}
|
||||
OpenAPI_civic_address_t *civic_addressesItem = OpenAPI_civic_address_parseFromJSON(civic_addresses_local_nonprimitive);
|
||||
|
||||
if (!civic_addressesItem) {
|
||||
ogs_error("No civic_addressesItem");
|
||||
OpenAPI_list_free(civic_addressesList);
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_list_add(civic_addressesList, civic_addressesItem);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue