mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +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
|
|
@ -288,6 +288,12 @@ OpenAPI_traffic_control_data_t *OpenAPI_traffic_control_data_parseFromJSON(cJSON
|
|||
}
|
||||
OpenAPI_redirect_information_t *add_redirect_infoItem = OpenAPI_redirect_information_parseFromJSON(add_redirect_info_local_nonprimitive);
|
||||
|
||||
if (!add_redirect_infoItem) {
|
||||
ogs_error("No add_redirect_infoItem");
|
||||
OpenAPI_list_free(add_redirect_infoList);
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_list_add(add_redirect_infoList, add_redirect_infoItem);
|
||||
}
|
||||
}
|
||||
|
|
@ -338,6 +344,12 @@ OpenAPI_traffic_control_data_t *OpenAPI_traffic_control_data_parseFromJSON(cJSON
|
|||
}
|
||||
OpenAPI_route_to_location_t *route_to_locsItem = OpenAPI_route_to_location_parseFromJSON(route_to_locs_local_nonprimitive);
|
||||
|
||||
if (!route_to_locsItem) {
|
||||
ogs_error("No route_to_locsItem");
|
||||
OpenAPI_list_free(route_to_locsList);
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_list_add(route_to_locsList, route_to_locsItem);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue