mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40:09 +00:00
parent
1ba7a73abd
commit
63df530bb4
123 changed files with 2132 additions and 42 deletions
|
|
@ -304,6 +304,14 @@ cJSON *OpenAPI_app_session_context_req_data_convertToJSON(OpenAPI_app_session_co
|
|||
if (app_session_context_req_data->med_components) {
|
||||
OpenAPI_list_for_each(app_session_context_req_data->med_components, node) {
|
||||
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
|
||||
if (localKeyValue == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_convertToJSON() failed [med_components]");
|
||||
goto end;
|
||||
}
|
||||
if (localKeyValue->key == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_convertToJSON() failed [med_components]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *itemLocal = localKeyValue->value ?
|
||||
OpenAPI_media_component_convertToJSON(localKeyValue->value) :
|
||||
cJSON_CreateNull();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue