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
|
|
@ -137,6 +137,12 @@ OpenAPI_external_unrelated_class_t *OpenAPI_external_unrelated_class_parseFromJS
|
|||
}
|
||||
OpenAPI_lcs_client_external_t *lcs_client_externalsItem = OpenAPI_lcs_client_external_parseFromJSON(lcs_client_externals_local_nonprimitive);
|
||||
|
||||
if (!lcs_client_externalsItem) {
|
||||
ogs_error("No lcs_client_externalsItem");
|
||||
OpenAPI_list_free(lcs_client_externalsList);
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_list_add(lcs_client_externalsList, lcs_client_externalsItem);
|
||||
}
|
||||
}
|
||||
|
|
@ -160,6 +166,12 @@ OpenAPI_external_unrelated_class_t *OpenAPI_external_unrelated_class_parseFromJS
|
|||
}
|
||||
OpenAPI_af_external_t *af_externalsItem = OpenAPI_af_external_parseFromJSON(af_externals_local_nonprimitive);
|
||||
|
||||
if (!af_externalsItem) {
|
||||
ogs_error("No af_externalsItem");
|
||||
OpenAPI_list_free(af_externalsList);
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_list_add(af_externalsList, af_externalsItem);
|
||||
}
|
||||
}
|
||||
|
|
@ -183,6 +195,12 @@ OpenAPI_external_unrelated_class_t *OpenAPI_external_unrelated_class_parseFromJS
|
|||
}
|
||||
OpenAPI_lcs_client_group_external_t *lcs_client_group_externalsItem = OpenAPI_lcs_client_group_external_parseFromJSON(lcs_client_group_externals_local_nonprimitive);
|
||||
|
||||
if (!lcs_client_group_externalsItem) {
|
||||
ogs_error("No lcs_client_group_externalsItem");
|
||||
OpenAPI_list_free(lcs_client_group_externalsList);
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_list_add(lcs_client_group_externalsList, lcs_client_group_externalsItem);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue