mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10: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
|
|
@ -287,6 +287,12 @@ OpenAPI_release_data_t *OpenAPI_release_data_parseFromJSON(cJSON *release_dataJS
|
|||
}
|
||||
OpenAPI_secondary_rat_usage_report_t *secondary_rat_usage_reportItem = OpenAPI_secondary_rat_usage_report_parseFromJSON(secondary_rat_usage_report_local_nonprimitive);
|
||||
|
||||
if (!secondary_rat_usage_reportItem) {
|
||||
ogs_error("No secondary_rat_usage_reportItem");
|
||||
OpenAPI_list_free(secondary_rat_usage_reportList);
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_list_add(secondary_rat_usage_reportList, secondary_rat_usage_reportItem);
|
||||
}
|
||||
}
|
||||
|
|
@ -310,6 +316,12 @@ OpenAPI_release_data_t *OpenAPI_release_data_parseFromJSON(cJSON *release_dataJS
|
|||
}
|
||||
OpenAPI_secondary_rat_usage_info_t *secondary_rat_usage_infoItem = OpenAPI_secondary_rat_usage_info_parseFromJSON(secondary_rat_usage_info_local_nonprimitive);
|
||||
|
||||
if (!secondary_rat_usage_infoItem) {
|
||||
ogs_error("No secondary_rat_usage_infoItem");
|
||||
OpenAPI_list_free(secondary_rat_usage_infoList);
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_list_add(secondary_rat_usage_infoList, secondary_rat_usage_infoItem);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue