Projects
osmocom:nightly
open5gs
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 325
View file
open5gs_2.6.3.6.1ba7a.202305130026.dsc -> open5gs_2.6.3.8.16387.202305140026.dsc
Changed
@@ -2,7 +2,7 @@ Source: open5gs Binary: open5gs-common, open5gs-mme, open5gs-sgwc, open5gs-smf, open5gs-amf, open5gs-sgwu, open5gs-upf, open5gs-hss, open5gs-pcrf, open5gs-nrf, open5gs-scp, open5gs-ausf, open5gs-udm, open5gs-pcf, open5gs-nssf, open5gs-bsf, open5gs-udr, open5gs, open5gs-dbg Architecture: any -Version: 2.6.3.6.1ba7a.202305130026 +Version: 2.6.3.8.16387.202305140026 Maintainer: Harald Welte <laforge@gnumonks.org> Uploaders: Sukchan Lee <acetcom@gmail.com> Homepage: https://open5gs.org @@ -31,8 +31,8 @@ open5gs-udr deb net optional arch=any open5gs-upf deb net optional arch=any Checksums-Sha1: - b6071c31ae79fc74235c63474bff081ff0b1e856 14117996 open5gs_2.6.3.6.1ba7a.202305130026.tar.xz + 5d5a588e20615cb083ee5a621d2bed59d0bc040d 14123172 open5gs_2.6.3.8.16387.202305140026.tar.xz Checksums-Sha256: - 165c8729a1b13b761b0b10b39ca75d52b6f90b67daf2a023c4c4bec6ebc72cde 14117996 open5gs_2.6.3.6.1ba7a.202305130026.tar.xz + d80fefd3c5f80e26f24f957d4aa68f625ace061936cde9e2288b0cabe7c30449 14123172 open5gs_2.6.3.8.16387.202305140026.tar.xz Files: - 7d5e13fd30f1fe61c6c0adf76765b270 14117996 open5gs_2.6.3.6.1ba7a.202305130026.tar.xz + b078b32e7a89d5c21195614e6375ff60 14123172 open5gs_2.6.3.8.16387.202305140026.tar.xz
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/.tarball-version -> open5gs_2.6.3.8.16387.202305140026.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -2.6.3.6-1ba7a.202305130026 +2.6.3.8-16387.202305140026
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/configs/open5gs/scp.yaml.in -> open5gs_2.6.3.8.16387.202305140026.tar.xz/configs/open5gs/scp.yaml.in
Changed
@@ -178,6 +178,51 @@ # l_onoff: true # l_linger: 10 # +# <SCP Information> +# +# o SCP port number(s) WITHOUT SCP Domain +# - If no SCP port information is present in ScpInfo or +# in ScpDomainInfo for a specific SCP domain, +# the HTTP client shall use the default HTTP port number, +# i.e. TCP port 80 for "http" URIs or TCP port 443 +# for "https" URIs as specified in IETF RFC 7540 9 +# when sending a request to the SCP within the specific SCP domain. +# scp: +# info: +# port: +# http: 7777 +# https: 8888 +# +# o SCP port number(s) WITH SCP Domain +# - If this attribute is present, +# it has precedence over the scpPorts attribute of ScpInfo. +# scp: +# info: +# domain: +# - name: SCP_Domain_1 +# fqdn: scp.localdomain +# port: +# http: 7777 +# https: 8888 +# +# o Complex Example +# scp: +# info: +# port: +# http: 7777 +# https: 8888 +# domain: +# - name: SCP_Domain_1 +# fqdn: scp.hplmndomain +# port: +# http: 3333 +# https: 4444 +# - name: SCP_Domain_2 +# fqdn: scp.vplmndomain +# port: +# http: 5555 +# https: 6666 +# # <For Indirect Communication with Delegated Discovery> # # o (Default) If you do not set Delegated Discovery as shown below,
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/debian/changelog -> open5gs_2.6.3.8.16387.202305140026.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -open5gs (2.6.3.6.1ba7a.202305130026) unstable; urgency=medium +open5gs (2.6.3.8.16387.202305140026) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom nightly feed - -- Osmocom OBS scripts <info@osmocom.org> Sat, 13 May 2023 00:27:49 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Sun, 14 May 2023 00:27:39 +0000 open5gs (2.6.3) unstable; urgency=medium
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/core/ogs-conv.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/core/ogs-conv.c
Changed
@@ -239,3 +239,16 @@ return x; } + +double *ogs_alloc_double(double value) +{ + double *mem = (double *)ogs_calloc(1, sizeof(double)); + if (!mem) { + ogs_error("No memory"); + return NULL; + } + + *mem = value; + + return mem; +}
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/core/ogs-conv.h -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/core/ogs-conv.h
Changed
@@ -55,6 +55,8 @@ ogs_uint24_t ogs_uint24_from_string(char *str); uint64_t ogs_uint64_from_string(char *str); +double *ogs_alloc_double(double value); + #ifdef __cplusplus } #endif
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/proto/types.h -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/proto/types.h
Changed
@@ -795,6 +795,11 @@ unsigned int size; } ogs_datum_t; +typedef struct ogs_port_s { + bool presence; + uint16_t port; +} ogs_port_t; + #ifdef __cplusplus } #endif
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/context.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/context.c
Changed
@@ -1259,6 +1259,11 @@ ogs_pool_free(&smf_info_pool, smf_info); } +static void scp_info_free(ogs_sbi_scp_info_t *scp_info) +{ + scp_info->num_of_domain = 0; +} + void ogs_sbi_nf_info_remove(ogs_list_t *list, ogs_sbi_nf_info_t *nf_info) { ogs_assert(list); @@ -1273,6 +1278,9 @@ case OpenAPI_nf_type_SMF: smf_info_free(&nf_info->smf); break; + case OpenAPI_nf_type_SCP: + scp_info_free(&nf_info->scp); + break; default: ogs_fatal("Not implemented NF-type%s", OpenAPI_nf_type_ToString(nf_info->nf_type));
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/context.h -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/context.h
Changed
@@ -29,6 +29,7 @@ #endif #define OGS_MAX_NUM_OF_NF_INFO 8 +#define OGS_MAX_NUM_OF_SCP_DOMAIN 8 typedef struct ogs_sbi_client_s ogs_sbi_client_t; typedef struct ogs_sbi_smf_info_s ogs_sbi_smf_info_t; @@ -297,6 +298,18 @@ } nr_tai_rangeOGS_MAX_NUM_OF_TAI; } ogs_sbi_smf_info_t; +typedef struct ogs_sbi_scp_info_s { + ogs_port_t http, https; + + int num_of_domain; + struct { + char *name; + char *fqdn; + ogs_port_t http, https; + } domainOGS_MAX_NUM_OF_SCP_DOMAIN; + +} ogs_sbi_scp_info_t; + typedef struct ogs_sbi_amf_info_s { int amf_set_id; int amf_region_id; @@ -328,6 +341,7 @@ union { ogs_sbi_smf_info_t smf; ogs_sbi_amf_info_t amf; + ogs_sbi_scp_info_t scp; }; } ogs_sbi_nf_info_t;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/nnrf-build.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/nnrf-build.c
Changed
@@ -24,8 +24,10 @@ static void free_nf_service(OpenAPI_nf_service_t *NFService); static OpenAPI_smf_info_t *build_smf_info(ogs_sbi_nf_info_t *nf_info); static OpenAPI_amf_info_t *build_amf_info(ogs_sbi_nf_info_t *nf_info); +static OpenAPI_scp_info_t *build_scp_info(ogs_sbi_nf_info_t *nf_info); static void free_smf_info(OpenAPI_smf_info_t *SmfInfo); static void free_amf_info(OpenAPI_amf_info_t *AmfInfo); +static void free_scp_info(OpenAPI_scp_info_t *ScpInfo); ogs_sbi_request_t *ogs_nnrf_nfm_build_register(void) { @@ -87,11 +89,11 @@ OpenAPI_map_t *NFServiceMap = NULL; OpenAPI_list_t *InfoList = NULL; OpenAPI_map_t *InfoMap = NULL; - OpenAPI_smf_info_t *SmfInfo = NULL; int InfoMapKey; OpenAPI_lnode_t *node = NULL; + OpenAPI_smf_info_t *SmfInfo = NULL; OpenAPI_amf_info_t *AmfInfo = NULL; int i = 0; @@ -297,6 +299,14 @@ OpenAPI_list_add(InfoList, InfoMap); + } else if (nf_info->nf_type == OpenAPI_nf_type_SCP) { + + /* SCP info will be skipped here first and dealt with below. */ + + } else if (nf_info->nf_type == OpenAPI_nf_type_SEPP) { + + /* SEPP info will be skipped here first and dealt with below. */ + } else { ogs_fatal("Not implemented NF-type%s", OpenAPI_nf_type_ToString(nf_info->nf_type)); @@ -335,6 +345,14 @@ } else OpenAPI_list_free(InfoList); + /* There can only be one SCP info, not multiple. */ + nf_info = ogs_sbi_nf_info_find( + &nf_instance->nf_info_list, OpenAPI_nf_type_SCP); + if (nf_info) { + NFProfile->scp_info = build_scp_info(nf_info); + ogs_assert(NFProfile->scp_info); + } + return NFProfile; } @@ -412,6 +430,9 @@ if (NFProfile->amf_info) free_amf_info(NFProfile->amf_info); + if (NFProfile->scp_info) + free_scp_info(NFProfile->scp_info); + ogs_free(NFProfile); } @@ -1041,6 +1062,130 @@ return AmfInfo; } +static OpenAPI_scp_info_t *build_scp_info(ogs_sbi_nf_info_t *nf_info) +{ + int i; + OpenAPI_scp_info_t *ScpInfo = NULL; + OpenAPI_list_t *PortList = NULL; + OpenAPI_map_t *PortMap = NULL; + + OpenAPI_list_t *DomainInfoList = NULL; + OpenAPI_map_t *DomainInfoMap = NULL; + OpenAPI_scp_domain_info_t *DomainInfo = NULL; + + ogs_assert(nf_info); + + ScpInfo = ogs_calloc(1, sizeof(*ScpInfo)); + if (!ScpInfo) { + ogs_error("No ScpInfo"); + return NULL; + } + + PortList = OpenAPI_list_create(); + if (!PortList) { + ogs_error("No PortList"); + free_scp_info(ScpInfo); + return NULL; + } + + if (nf_info->scp.http.presence) { + PortMap = OpenAPI_map_create( + (char *)"http", ogs_alloc_double(nf_info->scp.http.port)); + if (!PortMap) { + ogs_error("No PortMap"); + free_scp_info(ScpInfo); + return NULL; + } + OpenAPI_list_add(PortList, PortMap); + } + if (nf_info->scp.https.presence) { + PortMap = OpenAPI_map_create( + (char *)"https", ogs_alloc_double(nf_info->scp.https.port)); + if (!PortMap) { + ogs_error("No PortMap"); + free_scp_info(ScpInfo); + return NULL; + } + OpenAPI_list_add(PortList, PortMap); + } + + if (PortList->count) + ScpInfo->scp_ports = PortList; + else + OpenAPI_list_free(PortList); + + DomainInfoList = OpenAPI_list_create(); + if (!DomainInfoList) { + ogs_error("No DomainInfoList"); + free_scp_info(ScpInfo); + return NULL; + } + for (i = 0; i < nf_info->scp.num_of_domain; i++) { + ogs_assert(nf_info->scp.domaini.name); + + DomainInfo = ogs_calloc(1, sizeof(*DomainInfo)); + if (!DomainInfo) { + ogs_error("No DomainInfo"); + free_scp_info(ScpInfo); + return NULL; + } + + DomainInfo->scp_fqdn = nf_info->scp.domaini.fqdn; + + PortList = OpenAPI_list_create(); + if (!PortList) { + ogs_error("No PortList"); + free_scp_info(ScpInfo); + return NULL; + } + + if (nf_info->scp.domaini.http.presence) { + PortMap = OpenAPI_map_create( + (char *)"http", + ogs_alloc_double(nf_info->scp.domaini.http.port)); + if (!PortMap) { + ogs_error("No PortMap"); + free_scp_info(ScpInfo); + return NULL; + } + OpenAPI_list_add(PortList, PortMap); + } + if (nf_info->scp.domaini.https.presence) { + PortMap = OpenAPI_map_create( + (char *)"https", + ogs_alloc_double(nf_info->scp.domaini.https.port)); + if (!PortMap) { + ogs_error("No PortMap"); + free_scp_info(ScpInfo); + return NULL; + } + OpenAPI_list_add(PortList, PortMap); + } + + if (PortList->count) + DomainInfo->scp_ports = PortList; + else + OpenAPI_list_free(PortList); + + DomainInfoMap = OpenAPI_map_create( + nf_info->scp.domaini.name, DomainInfo); + if (!DomainInfoMap) { + ogs_error("No PortMap"); + free_scp_info(ScpInfo); + return NULL; + } + + OpenAPI_list_add(DomainInfoList, DomainInfoMap); + } + + if (DomainInfoList->count) + ScpInfo->scp_domain_info_list = DomainInfoList; + else + OpenAPI_list_free(DomainInfoList); + + return ScpInfo; +} + static void free_smf_info(OpenAPI_smf_info_t *SmfInfo) { OpenAPI_list_t *sNssaiSmfInfoList = NULL; @@ -1204,6 +1349,48 @@ ogs_free(AmfInfo); } +static void free_scp_info(OpenAPI_scp_info_t *ScpInfo)
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/acceptable_service_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/acceptable_service_info.c
Changed
@@ -69,6 +69,14 @@ if (acceptable_service_info->acc_bw_med_comps) { OpenAPI_list_for_each(acceptable_service_info->acc_bw_med_comps, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_acceptable_service_info_convertToJSON() failed acc_bw_med_comps"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_acceptable_service_info_convertToJSON() failed acc_bw_med_comps"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_media_component_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data.c
Changed
@@ -400,6 +400,14 @@ if (access_and_mobility_subscription_data->shared_vn_group_data_ids) { OpenAPI_list_for_each(access_and_mobility_subscription_data->shared_vn_group_data_ids, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed shared_vn_group_data_ids"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed shared_vn_group_data_ids"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) { ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed inner"); goto end; @@ -834,6 +842,14 @@ if (access_and_mobility_subscription_data->adjacent_plmn_restrictions) { OpenAPI_list_for_each(access_and_mobility_subscription_data->adjacent_plmn_restrictions, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed adjacent_plmn_restrictions"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed adjacent_plmn_restrictions"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_plmn_restriction_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data_1.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data_1.c
Changed
@@ -400,6 +400,14 @@ if (access_and_mobility_subscription_data_1->shared_vn_group_data_ids) { OpenAPI_list_for_each(access_and_mobility_subscription_data_1->shared_vn_group_data_ids, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed shared_vn_group_data_ids"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed shared_vn_group_data_ids"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) { ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed inner"); goto end; @@ -834,6 +842,14 @@ if (access_and_mobility_subscription_data_1->adjacent_plmn_restrictions) { OpenAPI_list_for_each(access_and_mobility_subscription_data_1->adjacent_plmn_restrictions, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed adjacent_plmn_restrictions"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed adjacent_plmn_restrictions"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_plmn_restriction_1_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/am_policy_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/am_policy_data.c
Changed
@@ -66,6 +66,14 @@ if (am_policy_data->pra_infos) { OpenAPI_list_for_each(am_policy_data->pra_infos, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_am_policy_data_convertToJSON() failed pra_infos"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_am_policy_data_convertToJSON() failed pra_infos"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/am_requested_value_rep.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/am_requested_value_rep.c
Changed
@@ -106,6 +106,14 @@ if (am_requested_value_rep->pra_statuses) { OpenAPI_list_for_each(am_requested_value_rep->pra_statuses, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_am_requested_value_rep_convertToJSON() failed pra_statuses"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_am_requested_value_rep_convertToJSON() failed pra_statuses"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/amf_event.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/amf_event.c
Changed
@@ -272,6 +272,14 @@ if (amf_event->presence_info_list) { OpenAPI_list_for_each(amf_event->presence_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_amf_event_convertToJSON() failed presence_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_amf_event_convertToJSON() failed presence_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/amf_event_subscription_add_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/amf_event_subscription_add_info.c
Changed
@@ -123,6 +123,14 @@ if (amf_event_subscription_add_info->aoi_state_list) { OpenAPI_list_for_each(amf_event_subscription_add_info->aoi_state_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_amf_event_subscription_add_info_convertToJSON() failed aoi_state_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_amf_event_subscription_add_info_convertToJSON() failed aoi_state_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_area_of_interest_event_state_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/app_descriptor_1.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/app_descriptor_1.c
Changed
@@ -75,6 +75,14 @@ if (app_descriptor_1->app_ids) { OpenAPI_list_for_each(app_descriptor_1->app_ids, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_app_descriptor_1_convertToJSON() failed app_ids"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_app_descriptor_1_convertToJSON() failed app_ids"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) { ogs_error("OpenAPI_app_descriptor_1_convertToJSON() failed inner"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/app_session_context_req_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/app_session_context_req_data.c
Changed
@@ -304,6 +304,14 @@ 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();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/app_session_context_update_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/app_session_context_update_data.c
Changed
@@ -215,6 +215,14 @@ if (app_session_context_update_data->med_components) { OpenAPI_list_for_each(app_session_context_update_data->med_components, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_app_session_context_update_data_convertToJSON() failed med_components"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_app_session_context_update_data_convertToJSON() failed med_components"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_media_component_rm_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/area_scope.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/area_scope.c
Changed
@@ -126,6 +126,14 @@ if (area_scope->tac_info_per_plmn) { OpenAPI_list_for_each(area_scope->tac_info_per_plmn, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_area_scope_convertToJSON() failed tac_info_per_plmn"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_area_scope_convertToJSON() failed tac_info_per_plmn"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_tac_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/assign_ebi_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/assign_ebi_data.c
Changed
@@ -98,7 +98,11 @@ goto end; } OpenAPI_list_for_each(assign_ebi_data->released_ebi_list, node) { - if (cJSON_AddNumberToObject(released_ebi_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_assign_ebi_data_convertToJSON() failed released_ebi_list"); + goto end; + } + if (cJSON_AddNumberToObject(released_ebi_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_assign_ebi_data_convertToJSON() failed released_ebi_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/assigned_ebi_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/assigned_ebi_data.c
Changed
@@ -119,7 +119,11 @@ goto end; } OpenAPI_list_for_each(assigned_ebi_data->released_ebi_list, node) { - if (cJSON_AddNumberToObject(released_ebi_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_assigned_ebi_data_convertToJSON() failed released_ebi_list"); + goto end; + } + if (cJSON_AddNumberToObject(released_ebi_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_assigned_ebi_data_convertToJSON() failed released_ebi_list"); goto end; } @@ -133,7 +137,11 @@ goto end; } OpenAPI_list_for_each(assigned_ebi_data->modified_ebi_list, node) { - if (cJSON_AddNumberToObject(modified_ebi_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_assigned_ebi_data_convertToJSON() failed modified_ebi_list"); + goto end; + } + if (cJSON_AddNumberToObject(modified_ebi_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_assigned_ebi_data_convertToJSON() failed modified_ebi_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/authorized_network_slice_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/authorized_network_slice_info.c
Changed
@@ -288,6 +288,14 @@ if (authorized_network_slice_info->nrf_oauth2_required) { OpenAPI_list_for_each(authorized_network_slice_info->nrf_oauth2_required, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_authorized_network_slice_info_convertToJSON() failed nrf_oauth2_required"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_authorized_network_slice_info_convertToJSON() failed nrf_oauth2_required"); + goto end; + } if (cJSON_AddBoolToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { ogs_error("OpenAPI_authorized_network_slice_info_convertToJSON() failed inner"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/cag_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/cag_data.c
Changed
@@ -66,6 +66,14 @@ if (cag_data->cag_infos) { OpenAPI_list_for_each(cag_data->cag_infos, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_cag_data_convertToJSON() failed cag_infos"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_cag_data_convertToJSON() failed cag_infos"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_cag_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/cag_data_1.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/cag_data_1.c
Changed
@@ -66,6 +66,14 @@ if (cag_data_1->cag_infos) { OpenAPI_list_for_each(cag_data_1->cag_infos, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_cag_data_1_convertToJSON() failed cag_infos"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_cag_data_1_convertToJSON() failed cag_infos"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_cag_info_1_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/default_notification_subscription.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/default_notification_subscription.c
Changed
@@ -163,6 +163,14 @@ if (default_notification_subscription->service_info_list) { OpenAPI_list_for_each(default_notification_subscription->service_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_default_notification_subscription_convertToJSON() failed service_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_default_notification_subscription_convertToJSON() failed service_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_def_sub_service_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/dnn_upf_info_item.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/dnn_upf_info_item.c
Changed
@@ -215,6 +215,14 @@ if (dnn_upf_info_item->dnai_nw_instance_list) { OpenAPI_list_for_each(dnn_upf_info_item->dnai_nw_instance_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_dnn_upf_info_item_convertToJSON() failed dnai_nw_instance_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_dnn_upf_info_item_convertToJSON() failed dnai_nw_instance_list"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) { ogs_error("OpenAPI_dnn_upf_info_item_convertToJSON() failed inner"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/eap_auth_method_200_response.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/eap_auth_method_200_response.c
Changed
@@ -75,6 +75,14 @@ if (eap_auth_method_200_response->_links) { OpenAPI_list_for_each(eap_auth_method_200_response->_links, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_eap_auth_method_200_response_convertToJSON() failed _links"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_eap_auth_method_200_response_convertToJSON() failed _links"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/eap_session.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/eap_session.c
Changed
@@ -114,6 +114,14 @@ if (eap_session->_links) { OpenAPI_list_for_each(eap_session->_links, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_eap_session_convertToJSON() failed _links"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_eap_session_convertToJSON() failed _links"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ee_group_profile_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ee_group_profile_data.c
Changed
@@ -104,6 +104,14 @@ if (ee_group_profile_data->allowed_mtc_provider) { OpenAPI_list_for_each(ee_group_profile_data->allowed_mtc_provider, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ee_group_profile_data_convertToJSON() failed allowed_mtc_provider"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ee_group_profile_data_convertToJSON() failed allowed_mtc_provider"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_mtc_provider_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ee_profile_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ee_profile_data.c
Changed
@@ -111,6 +111,14 @@ if (ee_profile_data->allowed_mtc_provider) { OpenAPI_list_for_each(ee_profile_data->allowed_mtc_provider, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ee_profile_data_convertToJSON() failed allowed_mtc_provider"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ee_profile_data_convertToJSON() failed allowed_mtc_provider"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_mtc_provider_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ee_subscription.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ee_subscription.c
Changed
@@ -157,6 +157,14 @@ if (ee_subscription->monitoring_configurations) { OpenAPI_list_for_each(ee_subscription->monitoring_configurations, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ee_subscription_convertToJSON() failed monitoring_configurations"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ee_subscription_convertToJSON() failed monitoring_configurations"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_monitoring_configuration_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ee_subscription_1.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ee_subscription_1.c
Changed
@@ -157,6 +157,14 @@ if (ee_subscription_1->monitoring_configurations) { OpenAPI_list_for_each(ee_subscription_1->monitoring_configurations, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ee_subscription_1_convertToJSON() failed monitoring_configurations"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ee_subscription_1_convertToJSON() failed monitoring_configurations"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_monitoring_configuration_1_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ee_subscription_ext.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ee_subscription_ext.c
Changed
@@ -178,6 +178,14 @@ if (ee_subscription_ext->monitoring_configurations) { OpenAPI_list_for_each(ee_subscription_ext->monitoring_configurations, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ee_subscription_ext_convertToJSON() failed monitoring_configurations"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ee_subscription_ext_convertToJSON() failed monitoring_configurations"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_monitoring_configuration_1_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/eps_interworking_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/eps_interworking_info.c
Changed
@@ -57,6 +57,14 @@ if (eps_interworking_info->eps_iwk_pgws) { OpenAPI_list_for_each(eps_interworking_info->eps_iwk_pgws, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_eps_interworking_info_convertToJSON() failed eps_iwk_pgws"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_eps_interworking_info_convertToJSON() failed eps_iwk_pgws"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_eps_iwk_pgw_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/event_subscription.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/event_subscription.c
Changed
@@ -585,7 +585,11 @@ goto end; } OpenAPI_list_for_each(event_subscription->nsi_level_thrds, node) { - if (cJSON_AddNumberToObject(nsi_level_thrdsList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_event_subscription_convertToJSON() failed nsi_level_thrds"); + goto end; + } + if (cJSON_AddNumberToObject(nsi_level_thrdsList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_event_subscription_convertToJSON() failed nsi_level_thrds"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ext_amf_event_subscription.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ext_amf_event_subscription.c
Changed
@@ -404,6 +404,14 @@ if (ext_amf_event_subscription->aoi_state_list) { OpenAPI_list_for_each(ext_amf_event_subscription->aoi_state_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ext_amf_event_subscription_convertToJSON() failed aoi_state_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ext_amf_event_subscription_convertToJSON() failed aoi_state_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_area_of_interest_event_state_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/flows.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/flows.c
Changed
@@ -62,7 +62,11 @@ goto end; } OpenAPI_list_for_each(flows->cont_vers, node) { - if (cJSON_AddNumberToObject(cont_versList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_flows_convertToJSON() failed cont_vers"); + goto end; + } + if (cJSON_AddNumberToObject(cont_versList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_flows_convertToJSON() failed cont_vers"); goto end; } @@ -76,7 +80,11 @@ goto end; } OpenAPI_list_for_each(flows->f_nums, node) { - if (cJSON_AddNumberToObject(f_numsList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_flows_convertToJSON() failed f_nums"); + goto end; + } + if (cJSON_AddNumberToObject(f_numsList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_flows_convertToJSON() failed f_nums"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/hsmf_update_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/hsmf_update_data.c
Changed
@@ -609,7 +609,11 @@ goto end; } OpenAPI_list_for_each(hsmf_update_data->eps_bearer_id, node) { - if (cJSON_AddNumberToObject(eps_bearer_idList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed eps_bearer_id"); + goto end; + } + if (cJSON_AddNumberToObject(eps_bearer_idList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed eps_bearer_id"); goto end; } @@ -630,7 +634,11 @@ goto end; } OpenAPI_list_for_each(hsmf_update_data->revoke_ebi_list, node) { - if (cJSON_AddNumberToObject(revoke_ebi_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed revoke_ebi_list"); + goto end; + } + if (cJSON_AddNumberToObject(revoke_ebi_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed revoke_ebi_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/identity_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/identity_data.c
Changed
@@ -126,6 +126,14 @@ if (identity_data->application_port_ids) { OpenAPI_list_for_each(identity_data->application_port_ids, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_identity_data_convertToJSON() failed application_port_ids"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_identity_data_convertToJSON() failed application_port_ids"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) { ogs_error("OpenAPI_identity_data_convertToJSON() failed inner"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ie_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ie_info.c
Changed
@@ -116,6 +116,14 @@ if (ie_info->is_modifiable_by_ipx) { OpenAPI_list_for_each(ie_info->is_modifiable_by_ipx, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ie_info_convertToJSON() failed is_modifiable_by_ipx"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ie_info_convertToJSON() failed is_modifiable_by_ipx"); + goto end; + } if (cJSON_AddBoolToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { ogs_error("OpenAPI_ie_info_convertToJSON() failed inner"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/inter_freq_target_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/inter_freq_target_info.c
Changed
@@ -58,7 +58,11 @@ goto end; } OpenAPI_list_for_each(inter_freq_target_info->cell_id_list, node) { - if (cJSON_AddNumberToObject(cell_id_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_inter_freq_target_info_convertToJSON() failed cell_id_list"); + goto end; + } + if (cJSON_AddNumberToObject(cell_id_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_inter_freq_target_info_convertToJSON() failed cell_id_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/inter_freq_target_info_1.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/inter_freq_target_info_1.c
Changed
@@ -58,7 +58,11 @@ goto end; } OpenAPI_list_for_each(inter_freq_target_info_1->cell_id_list, node) { - if (cJSON_AddNumberToObject(cell_id_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_inter_freq_target_info_1_convertToJSON() failed cell_id_list"); + goto end; + } + if (cJSON_AddNumberToObject(cell_id_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_inter_freq_target_info_1_convertToJSON() failed cell_id_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/iptv_config_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/iptv_config_data.c
Changed
@@ -160,6 +160,14 @@ if (iptv_config_data->multi_acc_ctrls) { OpenAPI_list_for_each(iptv_config_data->multi_acc_ctrls, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_iptv_config_data_convertToJSON() failed multi_acc_ctrls"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_iptv_config_data_convertToJSON() failed multi_acc_ctrls"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_multicast_access_control_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/iptv_config_data_patch.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/iptv_config_data_patch.c
Changed
@@ -57,6 +57,14 @@ if (iptv_config_data_patch->multi_acc_ctrls) { OpenAPI_list_for_each(iptv_config_data_patch->multi_acc_ctrls, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_iptv_config_data_patch_convertToJSON() failed multi_acc_ctrls"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_iptv_config_data_patch_convertToJSON() failed multi_acc_ctrls"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_multicast_access_control_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/mb_smf_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/mb_smf_info.c
Changed
@@ -99,6 +99,14 @@ if (mb_smf_info->s_nssai_info_list) { OpenAPI_list_for_each(mb_smf_info->s_nssai_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed s_nssai_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed s_nssai_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_snssai_mb_smf_info_item_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -121,6 +129,14 @@ if (mb_smf_info->tmgi_range_list) { OpenAPI_list_for_each(mb_smf_info->tmgi_range_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed tmgi_range_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed tmgi_range_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_tmgi_range_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -175,6 +191,14 @@ if (mb_smf_info->mbs_session_list) { OpenAPI_list_for_each(mb_smf_info->mbs_session_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed mbs_session_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed mbs_session_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_mbs_session_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/mbs_session.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/mbs_session.c
Changed
@@ -78,6 +78,14 @@ if (mbs_session->mbs_area_sessions) { OpenAPI_list_for_each(mbs_session->mbs_area_sessions, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_mbs_session_convertToJSON() failed mbs_area_sessions"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_mbs_session_convertToJSON() failed mbs_area_sessions"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_mbs_service_area_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/media_component.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/media_component.c
Changed
@@ -396,6 +396,14 @@ if (media_component->med_sub_comps) { OpenAPI_list_for_each(media_component->med_sub_comps, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_media_component_convertToJSON() failed med_sub_comps"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_media_component_convertToJSON() failed med_sub_comps"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_media_sub_component_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/media_component_rm.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/media_component_rm.c
Changed
@@ -404,6 +404,14 @@ if (media_component_rm->med_sub_comps) { OpenAPI_list_for_each(media_component_rm->med_sub_comps, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_media_component_rm_convertToJSON() failed med_sub_comps"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_media_component_rm_convertToJSON() failed med_sub_comps"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_media_sub_component_rm_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/n2_information_notification.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/n2_information_notification.c
Changed
@@ -136,7 +136,11 @@ goto end; } OpenAPI_list_for_each(n2_information_notification->to_release_session_list, node) { - if (cJSON_AddNumberToObject(to_release_session_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_n2_information_notification_convertToJSON() failed to_release_session_list"); + goto end; + } + if (cJSON_AddNumberToObject(to_release_session_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_n2_information_notification_convertToJSON() failed to_release_session_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/n4_information.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/n4_information.c
Changed
@@ -128,7 +128,11 @@ goto end; } OpenAPI_list_for_each(n4_information->n9_ul_pdr_id_list, node) { - if (cJSON_AddNumberToObject(n9_ul_pdr_id_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_n4_information_convertToJSON() failed n9_ul_pdr_id_list"); + goto end; + } + if (cJSON_AddNumberToObject(n9_ul_pdr_id_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_n4_information_convertToJSON() failed n9_ul_pdr_id_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nf_instance_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nf_instance_info.c
Changed
@@ -89,7 +89,19 @@ if (nf_instance_info->nrf_altered_priorities) { OpenAPI_list_for_each(nf_instance_info->nrf_altered_priorities, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; - if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_instance_info_convertToJSON() failed nrf_altered_priorities"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_instance_info_convertToJSON() failed nrf_altered_priorities"); + goto end; + } + if (localKeyValue->value == NULL) { + ogs_error("OpenAPI_nf_instance_info_convertToJSON() failed inner"); + goto end; + } + if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) { ogs_error("OpenAPI_nf_instance_info_convertToJSON() failed inner"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nf_profile.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nf_profile.c
Changed
@@ -1028,6 +1028,14 @@ if (nf_profile->udr_info_list) { OpenAPI_list_for_each(nf_profile->udr_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed udr_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed udr_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_udr_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1063,6 +1071,14 @@ if (nf_profile->udm_info_list) { OpenAPI_list_for_each(nf_profile->udm_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed udm_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed udm_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_udm_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1098,6 +1114,14 @@ if (nf_profile->ausf_info_list) { OpenAPI_list_for_each(nf_profile->ausf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed ausf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed ausf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_ausf_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1133,6 +1157,14 @@ if (nf_profile->amf_info_list) { OpenAPI_list_for_each(nf_profile->amf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed amf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed amf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_amf_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1168,6 +1200,14 @@ if (nf_profile->smf_info_list) { OpenAPI_list_for_each(nf_profile->smf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed smf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed smf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_smf_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1203,6 +1243,14 @@ if (nf_profile->upf_info_list) { OpenAPI_list_for_each(nf_profile->upf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed upf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed upf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_upf_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1238,6 +1286,14 @@ if (nf_profile->pcf_info_list) { OpenAPI_list_for_each(nf_profile->pcf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed pcf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed pcf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_pcf_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1273,6 +1329,14 @@ if (nf_profile->bsf_info_list) { OpenAPI_list_for_each(nf_profile->bsf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed bsf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed bsf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_bsf_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1308,6 +1372,14 @@ if (nf_profile->chf_info_list) { OpenAPI_list_for_each(nf_profile->chf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed chf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed chf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_chf_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1369,6 +1441,14 @@ if (nf_profile->udsf_info_list) { OpenAPI_list_for_each(nf_profile->udsf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed udsf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed udsf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_udsf_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1404,6 +1484,14 @@ if (nf_profile->nwdaf_info_list) { OpenAPI_list_for_each(nf_profile->nwdaf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed nwdaf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed nwdaf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nwdaf_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1426,6 +1514,14 @@ if (nf_profile->pcscf_info_list) { OpenAPI_list_for_each(nf_profile->pcscf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed pcscf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed pcscf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_pcscf_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1448,6 +1544,14 @@ if (nf_profile->hss_info_list) { OpenAPI_list_for_each(nf_profile->hss_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed hss_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_profile_convertToJSON() failed hss_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_hss_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1513,6 +1617,14 @@ if (nf_profile->nf_service_list) { OpenAPI_list_for_each(nf_profile->nf_service_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) {
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nf_service.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nf_service.c
Changed
@@ -440,6 +440,14 @@ if (nf_service->allowed_operations_per_nf_type) { OpenAPI_list_for_each(nf_service->allowed_operations_per_nf_type, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_service_convertToJSON() failed allowed_operations_per_nf_type"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_service_convertToJSON() failed allowed_operations_per_nf_type"); + goto end; + } } } } @@ -454,6 +462,14 @@ if (nf_service->allowed_operations_per_nf_instance) { OpenAPI_list_for_each(nf_service->allowed_operations_per_nf_instance, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_service_convertToJSON() failed allowed_operations_per_nf_instance"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_service_convertToJSON() failed allowed_operations_per_nf_instance"); + goto end; + } } } } @@ -563,6 +579,14 @@ if (nf_service->supported_vendor_specific_features) { OpenAPI_list_for_each(nf_service->supported_vendor_specific_features, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nf_service_convertToJSON() failed supported_vendor_specific_features"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nf_service_convertToJSON() failed supported_vendor_specific_features"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_vendor_specific_feature_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nrf_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nrf_info.c
Changed
@@ -525,6 +525,14 @@ if (nrf_info->served_udr_info) { OpenAPI_list_for_each(nrf_info->served_udr_info, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udr_info"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udr_info"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_udr_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -547,6 +555,14 @@ if (nrf_info->served_udr_info_list) { OpenAPI_list_for_each(nrf_info->served_udr_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udr_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udr_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_udr_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -569,6 +585,14 @@ if (nrf_info->served_udm_info) { OpenAPI_list_for_each(nrf_info->served_udm_info, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udm_info"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udm_info"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_udm_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -591,6 +615,14 @@ if (nrf_info->served_udm_info_list) { OpenAPI_list_for_each(nrf_info->served_udm_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udm_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udm_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_udm_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -613,6 +645,14 @@ if (nrf_info->served_ausf_info) { OpenAPI_list_for_each(nrf_info->served_ausf_info, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_ausf_info"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_ausf_info"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_ausf_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -635,6 +675,14 @@ if (nrf_info->served_ausf_info_list) { OpenAPI_list_for_each(nrf_info->served_ausf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_ausf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_ausf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_ausf_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -657,6 +705,14 @@ if (nrf_info->served_amf_info) { OpenAPI_list_for_each(nrf_info->served_amf_info, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_amf_info"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_amf_info"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_amf_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -679,6 +735,14 @@ if (nrf_info->served_amf_info_list) { OpenAPI_list_for_each(nrf_info->served_amf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_amf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_amf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_amf_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -701,6 +765,14 @@ if (nrf_info->served_smf_info) { OpenAPI_list_for_each(nrf_info->served_smf_info, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_smf_info"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_smf_info"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_smf_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -723,6 +795,14 @@ if (nrf_info->served_smf_info_list) { OpenAPI_list_for_each(nrf_info->served_smf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_smf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_smf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_smf_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -745,6 +825,14 @@ if (nrf_info->served_upf_info) { OpenAPI_list_for_each(nrf_info->served_upf_info, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_upf_info"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_upf_info"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_upf_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -767,6 +855,14 @@ if (nrf_info->served_upf_info_list) { OpenAPI_list_for_each(nrf_info->served_upf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_upf_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_upf_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_upf_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -789,6 +885,14 @@ if (nrf_info->served_pcf_info) { OpenAPI_list_for_each(nrf_info->served_pcf_info, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_pcf_info"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_pcf_info"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nrf_info_served_pcf_info_value_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -811,6 +915,14 @@ if (nrf_info->served_pcf_info_list) { OpenAPI_list_for_each(nrf_info->served_pcf_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) {
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nrf_info_served_mb_smf_info_list_value_value.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nrf_info_served_mb_smf_info_list_value_value.c
Changed
@@ -99,6 +99,14 @@ if (nrf_info_served_mb_smf_info_list_value_value->s_nssai_info_list) { OpenAPI_list_for_each(nrf_info_served_mb_smf_info_list_value_value->s_nssai_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed s_nssai_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed s_nssai_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_snssai_mb_smf_info_item_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -121,6 +129,14 @@ if (nrf_info_served_mb_smf_info_list_value_value->tmgi_range_list) { OpenAPI_list_for_each(nrf_info_served_mb_smf_info_list_value_value->tmgi_range_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed tmgi_range_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed tmgi_range_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_tmgi_range_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -175,6 +191,14 @@ if (nrf_info_served_mb_smf_info_list_value_value->mbs_session_list) { OpenAPI_list_for_each(nrf_info_served_mb_smf_info_list_value_value->mbs_session_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed mbs_session_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed mbs_session_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_mbs_session_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nrf_info_served_scp_info_list_value.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nrf_info_served_scp_info_list_value.c
Changed
@@ -155,6 +155,14 @@ if (nrf_info_served_scp_info_list_value->scp_domain_info_list) { OpenAPI_list_for_each(nrf_info_served_scp_info_list_value->scp_domain_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed scp_domain_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed scp_domain_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_scp_domain_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -184,7 +192,19 @@ if (nrf_info_served_scp_info_list_value->scp_ports) { OpenAPI_list_for_each(nrf_info_served_scp_info_list_value->scp_ports, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; - if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed scp_ports"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed scp_ports"); + goto end; + } + if (localKeyValue->value == NULL) { + ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed inner"); + goto end; + } + if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) { ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed inner"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nrf_info_served_sepp_info_list_value.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nrf_info_served_sepp_info_list_value.c
Changed
@@ -88,7 +88,19 @@ if (nrf_info_served_sepp_info_list_value->sepp_ports) { OpenAPI_list_for_each(nrf_info_served_sepp_info_list_value->sepp_ports, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; - if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_served_sepp_info_list_value_convertToJSON() failed sepp_ports"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_served_sepp_info_list_value_convertToJSON() failed sepp_ports"); + goto end; + } + if (localKeyValue->value == NULL) { + ogs_error("OpenAPI_nrf_info_served_sepp_info_list_value_convertToJSON() failed inner"); + goto end; + } + if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) { ogs_error("OpenAPI_nrf_info_served_sepp_info_list_value_convertToJSON() failed inner"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nrf_info_served_udsf_info_value.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nrf_info_served_udsf_info_value.c
Changed
@@ -95,6 +95,14 @@ if (nrf_info_served_udsf_info_value->storage_id_ranges) { OpenAPI_list_for_each(nrf_info_served_udsf_info_value->storage_id_ranges, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nrf_info_served_udsf_info_value_convertToJSON() failed storage_id_ranges"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nrf_info_served_udsf_info_value_convertToJSON() failed storage_id_ranges"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_identity_range_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nsag_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nsag_info.c
Changed
@@ -81,7 +81,11 @@ goto end; } OpenAPI_list_for_each(nsag_info->nsag_ids, node) { - if (cJSON_AddNumberToObject(nsag_idsList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_nsag_info_convertToJSON() failed nsag_ids"); + goto end; + } + if (cJSON_AddNumberToObject(nsag_idsList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_nsag_info_convertToJSON() failed nsag_ids"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nsi_information.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nsi_information.c
Changed
@@ -111,6 +111,14 @@ if (nsi_information->nrf_oauth2_required) { OpenAPI_list_for_each(nsi_information->nrf_oauth2_required, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nsi_information_convertToJSON() failed nrf_oauth2_required"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nsi_information_convertToJSON() failed nrf_oauth2_required"); + goto end; + } if (cJSON_AddBoolToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { ogs_error("OpenAPI_nsi_information_convertToJSON() failed inner"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nssai.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nssai.c
Changed
@@ -139,6 +139,14 @@ if (nssai->additional_snssai_data) { OpenAPI_list_for_each(nssai->additional_snssai_data, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nssai_convertToJSON() failed additional_snssai_data"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nssai_convertToJSON() failed additional_snssai_data"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_additional_snssai_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/nssai_1.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/nssai_1.c
Changed
@@ -139,6 +139,14 @@ if (nssai_1->additional_snssai_data) { OpenAPI_list_for_each(nssai_1->additional_snssai_data, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_nssai_1_convertToJSON() failed additional_snssai_data"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_nssai_1_convertToJSON() failed additional_snssai_data"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_additional_snssai_data_1_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/pdu_session_create_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/pdu_session_create_data.c
Changed
@@ -527,7 +527,11 @@ goto end; } OpenAPI_list_for_each(pdu_session_create_data->eps_bearer_id, node) { - if (cJSON_AddNumberToObject(eps_bearer_idList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed eps_bearer_id"); + goto end; + } + if (cJSON_AddNumberToObject(eps_bearer_idList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed eps_bearer_id"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/policy_association.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/policy_association.c
Changed
@@ -246,6 +246,14 @@ if (policy_association->pras) { OpenAPI_list_for_each(policy_association->pras, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_policy_association_convertToJSON() failed pras"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_policy_association_convertToJSON() failed pras"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/policy_association_update_request.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/policy_association_update_request.c
Changed
@@ -346,6 +346,14 @@ if (policy_association_update_request->pra_statuses) { OpenAPI_list_for_each(policy_association_update_request->pra_statuses, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_policy_association_update_request_convertToJSON() failed pra_statuses"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_policy_association_update_request_convertToJSON() failed pra_statuses"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/policy_data_change_notification.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/policy_data_change_notification.c
Changed
@@ -275,6 +275,14 @@ if (policy_data_change_notification->op_spec_data_map) { OpenAPI_list_for_each(policy_data_change_notification->op_spec_data_map, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_policy_data_change_notification_convertToJSON() failed op_spec_data_map"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_policy_data_change_notification_convertToJSON() failed op_spec_data_map"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_operator_specific_data_container_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/policy_data_for_individual_ue.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/policy_data_for_individual_ue.c
Changed
@@ -126,6 +126,14 @@ if (policy_data_for_individual_ue->um_data) { OpenAPI_list_for_each(policy_data_for_individual_ue->um_data, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_policy_data_for_individual_ue_convertToJSON() failed um_data"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_policy_data_for_individual_ue_convertToJSON() failed um_data"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_usage_mon_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -148,6 +156,14 @@ if (policy_data_for_individual_ue->operator_specific_data_set) { OpenAPI_list_for_each(policy_data_for_individual_ue->operator_specific_data_set, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_policy_data_for_individual_ue_convertToJSON() failed operator_specific_data_set"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_policy_data_for_individual_ue_convertToJSON() failed operator_specific_data_set"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_operator_specific_data_container_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/policy_update.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/policy_update.c
Changed
@@ -236,6 +236,14 @@ if (policy_update->pras) { OpenAPI_list_for_each(policy_update->pras, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_policy_update_convertToJSON() failed pras"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_policy_update_convertToJSON() failed pras"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_rm_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/pp5g_vn_group_profile_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/pp5g_vn_group_profile_data.c
Changed
@@ -63,6 +63,14 @@ if (pp5g_vn_group_profile_data->allowed_mtc_providers) { OpenAPI_list_for_each(pp5g_vn_group_profile_data->allowed_mtc_providers, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_pp5g_vn_group_profile_data_convertToJSON() failed allowed_mtc_providers"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_pp5g_vn_group_profile_data_convertToJSON() failed allowed_mtc_providers"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_allowed_mtc_provider_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/pp_profile_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/pp_profile_data.c
Changed
@@ -63,6 +63,14 @@ if (pp_profile_data->allowed_mtc_providers) { OpenAPI_list_for_each(pp_profile_data->allowed_mtc_providers, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_pp_profile_data_convertToJSON() failed allowed_mtc_providers"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_pp_profile_data_convertToJSON() failed allowed_mtc_providers"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_allowed_mtc_provider_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/pro_se_authentication_ctx.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/pro_se_authentication_ctx.c
Changed
@@ -83,6 +83,14 @@ if (pro_se_authentication_ctx->_links) { OpenAPI_list_for_each(pro_se_authentication_ctx->_links, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_pro_se_authentication_ctx_convertToJSON() failed _links"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_pro_se_authentication_ctx_convertToJSON() failed _links"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/pro_se_eap_session.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/pro_se_eap_session.c
Changed
@@ -105,6 +105,14 @@ if (pro_se_eap_session->_links) { OpenAPI_list_for_each(pro_se_eap_session->_links, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_pro_se_eap_session_convertToJSON() failed _links"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_pro_se_eap_session_convertToJSON() failed _links"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/qos_flow_tunnel.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/qos_flow_tunnel.c
Changed
@@ -60,7 +60,11 @@ goto end; } OpenAPI_list_for_each(qos_flow_tunnel->qfi_list, node) { - if (cJSON_AddNumberToObject(qfi_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_qos_flow_tunnel_convertToJSON() failed qfi_list"); + goto end; + } + if (cJSON_AddNumberToObject(qfi_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_qos_flow_tunnel_convertToJSON() failed qfi_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/qos_monitoring_report.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/qos_monitoring_report.c
Changed
@@ -94,7 +94,11 @@ goto end; } OpenAPI_list_for_each(qos_monitoring_report->ul_delays, node) { - if (cJSON_AddNumberToObject(ul_delaysList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed ul_delays"); + goto end; + } + if (cJSON_AddNumberToObject(ul_delaysList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed ul_delays"); goto end; } @@ -108,7 +112,11 @@ goto end; } OpenAPI_list_for_each(qos_monitoring_report->dl_delays, node) { - if (cJSON_AddNumberToObject(dl_delaysList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed dl_delays"); + goto end; + } + if (cJSON_AddNumberToObject(dl_delaysList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed dl_delays"); goto end; } @@ -122,7 +130,11 @@ goto end; } OpenAPI_list_for_each(qos_monitoring_report->rt_delays, node) { - if (cJSON_AddNumberToObject(rt_delaysList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed rt_delays"); + goto end; + } + if (cJSON_AddNumberToObject(rt_delaysList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed rt_delays"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/release_session_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/release_session_info.c
Changed
@@ -56,7 +56,11 @@ goto end; } OpenAPI_list_for_each(release_session_info->release_session_list, node) { - if (cJSON_AddNumberToObject(release_session_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_release_session_info_convertToJSON() failed release_session_list"); + goto end; + } + if (cJSON_AddNumberToObject(release_session_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_release_session_info_convertToJSON() failed release_session_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/rule_report.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/rule_report.c
Changed
@@ -110,7 +110,11 @@ goto end; } OpenAPI_list_for_each(rule_report->cont_vers, node) { - if (cJSON_AddNumberToObject(cont_versList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_rule_report_convertToJSON() failed cont_vers"); + goto end; + } + if (cJSON_AddNumberToObject(cont_versList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_rule_report_convertToJSON() failed cont_vers"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/scheduled_communication_time.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/scheduled_communication_time.c
Changed
@@ -63,7 +63,11 @@ goto end; } OpenAPI_list_for_each(scheduled_communication_time->days_of_week, node) { - if (cJSON_AddNumberToObject(days_of_weekList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_scheduled_communication_time_convertToJSON() failed days_of_week"); + goto end; + } + if (cJSON_AddNumberToObject(days_of_weekList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_scheduled_communication_time_convertToJSON() failed days_of_week"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/scheduled_communication_time_1.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/scheduled_communication_time_1.c
Changed
@@ -63,7 +63,11 @@ goto end; } OpenAPI_list_for_each(scheduled_communication_time_1->days_of_week, node) { - if (cJSON_AddNumberToObject(days_of_weekList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_scheduled_communication_time_1_convertToJSON() failed days_of_week"); + goto end; + } + if (cJSON_AddNumberToObject(days_of_weekList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_scheduled_communication_time_1_convertToJSON() failed days_of_week"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/scheduled_communication_time_rm.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/scheduled_communication_time_rm.c
Changed
@@ -63,7 +63,11 @@ goto end; } OpenAPI_list_for_each(scheduled_communication_time_rm->days_of_week, node) { - if (cJSON_AddNumberToObject(days_of_weekList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_scheduled_communication_time_rm_convertToJSON() failed days_of_week"); + goto end; + } + if (cJSON_AddNumberToObject(days_of_weekList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_scheduled_communication_time_rm_convertToJSON() failed days_of_week"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/scp_domain_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/scp_domain_info.c
Changed
@@ -108,7 +108,19 @@ if (scp_domain_info->scp_ports) { OpenAPI_list_for_each(scp_domain_info->scp_ports, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; - if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { + if (localKeyValue == NULL) { + ogs_error("OpenAPI_scp_domain_info_convertToJSON() failed scp_ports"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_scp_domain_info_convertToJSON() failed scp_ports"); + goto end; + } + if (localKeyValue->value == NULL) { + ogs_error("OpenAPI_scp_domain_info_convertToJSON() failed inner"); + goto end; + } + if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) { ogs_error("OpenAPI_scp_domain_info_convertToJSON() failed inner"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/scp_domain_routing_information.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/scp_domain_routing_information.c
Changed
@@ -60,6 +60,14 @@ if (scp_domain_routing_information->scp_domain_list) { OpenAPI_list_for_each(scp_domain_routing_information->scp_domain_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_scp_domain_routing_information_convertToJSON() failed scp_domain_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_scp_domain_routing_information_convertToJSON() failed scp_domain_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_scp_domain_connectivity_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/scp_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/scp_info.c
Changed
@@ -155,6 +155,14 @@ if (scp_info->scp_domain_info_list) { OpenAPI_list_for_each(scp_info->scp_domain_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_scp_info_convertToJSON() failed scp_domain_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_scp_info_convertToJSON() failed scp_domain_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_scp_domain_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -184,7 +192,19 @@ if (scp_info->scp_ports) { OpenAPI_list_for_each(scp_info->scp_ports, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; - if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { + if (localKeyValue == NULL) { + ogs_error("OpenAPI_scp_info_convertToJSON() failed scp_ports"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_scp_info_convertToJSON() failed scp_ports"); + goto end; + } + if (localKeyValue->value == NULL) { + ogs_error("OpenAPI_scp_info_convertToJSON() failed inner"); + goto end; + } + if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) { ogs_error("OpenAPI_scp_info_convertToJSON() failed inner"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/search_result.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/search_result.c
Changed
@@ -161,6 +161,14 @@ if (search_result->nf_instance_list) { OpenAPI_list_for_each(search_result->nf_instance_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_search_result_convertToJSON() failed nf_instance_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_search_result_convertToJSON() failed nf_instance_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_nf_instance_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sepp_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sepp_info.c
Changed
@@ -88,7 +88,19 @@ if (sepp_info->sepp_ports) { OpenAPI_list_for_each(sepp_info->sepp_ports, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; - if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sepp_info_convertToJSON() failed sepp_ports"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sepp_info_convertToJSON() failed sepp_ports"); + goto end; + } + if (localKeyValue->value == NULL) { + ogs_error("OpenAPI_sepp_info_convertToJSON() failed inner"); + goto end; + } + if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) { ogs_error("OpenAPI_sepp_info_convertToJSON() failed inner"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sequence_number.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sequence_number.c
Changed
@@ -85,7 +85,19 @@ if (sequence_number->last_indexes) { OpenAPI_list_for_each(sequence_number->last_indexes, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; - if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sequence_number_convertToJSON() failed last_indexes"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sequence_number_convertToJSON() failed last_indexes"); + goto end; + } + if (localKeyValue->value == NULL) { + ogs_error("OpenAPI_sequence_number_convertToJSON() failed inner"); + goto end; + } + if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) { ogs_error("OpenAPI_sequence_number_convertToJSON() failed inner"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data.c
Changed
@@ -155,6 +155,14 @@ if (session_management_subscription_data->dnn_configurations) { OpenAPI_list_for_each(session_management_subscription_data->dnn_configurations, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed dnn_configurations"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed dnn_configurations"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_dnn_configuration_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -191,6 +199,14 @@ if (session_management_subscription_data->shared_vn_group_data_ids) { OpenAPI_list_for_each(session_management_subscription_data->shared_vn_group_data_ids, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed shared_vn_group_data_ids"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed shared_vn_group_data_ids"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) { ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed inner"); goto end; @@ -243,6 +259,14 @@ if (session_management_subscription_data->expected_ue_behaviours_list) { OpenAPI_list_for_each(session_management_subscription_data->expected_ue_behaviours_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed expected_ue_behaviours_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed expected_ue_behaviours_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_expected_ue_behaviour_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -265,6 +289,14 @@ if (session_management_subscription_data->suggested_packet_num_dl_list) { OpenAPI_list_for_each(session_management_subscription_data->suggested_packet_num_dl_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed suggested_packet_num_dl_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed suggested_packet_num_dl_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_suggested_packet_num_dl_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data_1.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data_1.c
Changed
@@ -155,6 +155,14 @@ if (session_management_subscription_data_1->dnn_configurations) { OpenAPI_list_for_each(session_management_subscription_data_1->dnn_configurations, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed dnn_configurations"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed dnn_configurations"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_dnn_configuration_1_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -191,6 +199,14 @@ if (session_management_subscription_data_1->shared_vn_group_data_ids) { OpenAPI_list_for_each(session_management_subscription_data_1->shared_vn_group_data_ids, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed shared_vn_group_data_ids"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed shared_vn_group_data_ids"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) { ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed inner"); goto end; @@ -243,6 +259,14 @@ if (session_management_subscription_data_1->expected_ue_behaviours_list) { OpenAPI_list_for_each(session_management_subscription_data_1->expected_ue_behaviours_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed expected_ue_behaviours_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed expected_ue_behaviours_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_expected_ue_behaviour_data_1_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -265,6 +289,14 @@ if (session_management_subscription_data_1->suggested_packet_num_dl_list) { OpenAPI_list_for_each(session_management_subscription_data_1->suggested_packet_num_dl_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed suggested_packet_num_dl_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed suggested_packet_num_dl_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_suggested_packet_num_dl_1_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/shared_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/shared_data.c
Changed
@@ -182,6 +182,14 @@ if (shared_data->shared_dnn_configurations) { OpenAPI_list_for_each(shared_data->shared_dnn_configurations, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_dnn_configurations"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_dnn_configurations"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_dnn_configuration_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -217,6 +225,14 @@ if (shared_data->shared_snssai_infos) { OpenAPI_list_for_each(shared_data->shared_snssai_infos, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_snssai_infos"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_snssai_infos"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_snssai_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -239,6 +255,14 @@ if (shared_data->shared_vn_group_datas) { OpenAPI_list_for_each(shared_data->shared_vn_group_datas, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_vn_group_datas"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_vn_group_datas"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_vn_group_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -261,6 +285,14 @@ if (shared_data->treatment_instructions) { OpenAPI_list_for_each(shared_data->treatment_instructions, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_shared_data_convertToJSON() failed treatment_instructions"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_shared_data_convertToJSON() failed treatment_instructions"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, OpenAPI_shared_data_treatment_instruction_ToString((intptr_t)localKeyValue->value)) == NULL) { ogs_error("OpenAPI_shared_data_convertToJSON() failed treatment_instructions"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_context_create_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_context_create_data.c
Changed
@@ -855,7 +855,11 @@ goto end; } OpenAPI_list_for_each(sm_context_create_data->pdu_sessions_activate_list, node) { - if (cJSON_AddNumberToObject(pdu_sessions_activate_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed pdu_sessions_activate_list"); + goto end; + } + if (cJSON_AddNumberToObject(pdu_sessions_activate_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed pdu_sessions_activate_list"); goto end; } @@ -1304,6 +1308,14 @@ if (sm_context_create_data->nrf_oauth2_required) { OpenAPI_list_for_each(sm_context_create_data->nrf_oauth2_required, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed nrf_oauth2_required"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed nrf_oauth2_required"); + goto end; + } if (cJSON_AddBoolToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed inner"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_context_retrieve_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_context_retrieve_data.c
Changed
@@ -102,7 +102,11 @@ goto end; } OpenAPI_list_for_each(sm_context_retrieve_data->not_to_transfer_ebi_list, node) { - if (cJSON_AddNumberToObject(not_to_transfer_ebi_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_sm_context_retrieve_data_convertToJSON() failed not_to_transfer_ebi_list"); + goto end; + } + if (cJSON_AddNumberToObject(not_to_transfer_ebi_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_sm_context_retrieve_data_convertToJSON() failed not_to_transfer_ebi_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_context_update_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_context_update_data.c
Changed
@@ -642,7 +642,11 @@ goto end; } OpenAPI_list_for_each(sm_context_update_data->revoke_ebi_list, node) { - if (cJSON_AddNumberToObject(revoke_ebi_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed revoke_ebi_list"); + goto end; + } + if (cJSON_AddNumberToObject(revoke_ebi_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed revoke_ebi_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_context_updated_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_context_updated_data.c
Changed
@@ -189,7 +189,11 @@ goto end; } OpenAPI_list_for_each(sm_context_updated_data->release_ebi_list, node) { - if (cJSON_AddNumberToObject(release_ebi_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed release_ebi_list"); + goto end; + } + if (cJSON_AddNumberToObject(release_ebi_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed release_ebi_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_policy_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_policy_data.c
Changed
@@ -99,6 +99,14 @@ if (sm_policy_data->sm_policy_snssai_data) { OpenAPI_list_for_each(sm_policy_data->sm_policy_snssai_data, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed sm_policy_snssai_data"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed sm_policy_snssai_data"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_sm_policy_snssai_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -120,6 +128,14 @@ if (sm_policy_data->um_data_limits) { OpenAPI_list_for_each(sm_policy_data->um_data_limits, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed um_data_limits"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed um_data_limits"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_usage_mon_data_limit_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -142,6 +158,14 @@ if (sm_policy_data->um_data) { OpenAPI_list_for_each(sm_policy_data->um_data, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed um_data"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed um_data"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_usage_mon_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_policy_data_patch.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_policy_data_patch.c
Changed
@@ -69,6 +69,14 @@ if (sm_policy_data_patch->um_data) { OpenAPI_list_for_each(sm_policy_data_patch->um_data, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_data_patch_convertToJSON() failed um_data"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_data_patch_convertToJSON() failed um_data"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_usage_mon_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -91,6 +99,14 @@ if (sm_policy_data_patch->sm_policy_snssai_data) { OpenAPI_list_for_each(sm_policy_data_patch->sm_policy_snssai_data, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_data_patch_convertToJSON() failed sm_policy_snssai_data"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_data_patch_convertToJSON() failed sm_policy_snssai_data"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_sm_policy_snssai_data_patch_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_policy_decision.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_policy_decision.c
Changed
@@ -261,6 +261,14 @@ if (sm_policy_decision->sess_rules) { OpenAPI_list_for_each(sm_policy_decision->sess_rules, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed sess_rules"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed sess_rules"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_session_rule_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -283,6 +291,14 @@ if (sm_policy_decision->pcc_rules) { OpenAPI_list_for_each(sm_policy_decision->pcc_rules, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed pcc_rules"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed pcc_rules"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_pcc_rule_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -312,6 +328,14 @@ if (sm_policy_decision->qos_decs) { OpenAPI_list_for_each(sm_policy_decision->qos_decs, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_decs"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_decs"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_qos_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -334,6 +358,14 @@ if (sm_policy_decision->chg_decs) { OpenAPI_list_for_each(sm_policy_decision->chg_decs, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed chg_decs"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed chg_decs"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_charging_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -369,6 +401,14 @@ if (sm_policy_decision->traff_cont_decs) { OpenAPI_list_for_each(sm_policy_decision->traff_cont_decs, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed traff_cont_decs"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed traff_cont_decs"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_traffic_control_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -391,6 +431,14 @@ if (sm_policy_decision->um_decs) { OpenAPI_list_for_each(sm_policy_decision->um_decs, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed um_decs"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed um_decs"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_usage_monitoring_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -413,6 +461,14 @@ if (sm_policy_decision->qos_chars) { OpenAPI_list_for_each(sm_policy_decision->qos_chars, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_chars"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_chars"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_qos_characteristics_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -435,6 +491,14 @@ if (sm_policy_decision->qos_mon_decs) { OpenAPI_list_for_each(sm_policy_decision->qos_mon_decs, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_mon_decs"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_mon_decs"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_qos_monitoring_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -464,6 +528,14 @@ if (sm_policy_decision->conds) { OpenAPI_list_for_each(sm_policy_decision->conds, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed conds"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed conds"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_condition_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -557,6 +629,14 @@ if (sm_policy_decision->pra_infos) { OpenAPI_list_for_each(sm_policy_decision->pra_infos, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed pra_infos"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed pra_infos"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_rm_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data.c
Changed
@@ -277,6 +277,14 @@ if (sm_policy_dnn_data->ref_um_data_limit_ids) { OpenAPI_list_for_each(sm_policy_dnn_data->ref_um_data_limit_ids, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed ref_um_data_limit_ids"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed ref_um_data_limit_ids"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_limit_id_to_monitoring_key_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -334,6 +342,14 @@ if (sm_policy_dnn_data->pra_infos) { OpenAPI_list_for_each(sm_policy_dnn_data->pra_infos, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed pra_infos"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed pra_infos"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -356,6 +372,14 @@ if (sm_policy_dnn_data->bdt_ref_ids) { OpenAPI_list_for_each(sm_policy_dnn_data->bdt_ref_ids, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed bdt_ref_ids"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed bdt_ref_ids"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) { ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed inner"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data_patch.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data_patch.c
Changed
@@ -72,6 +72,14 @@ if (sm_policy_dnn_data_patch->bdt_ref_ids) { OpenAPI_list_for_each(sm_policy_dnn_data_patch->bdt_ref_ids, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_dnn_data_patch_convertToJSON() failed bdt_ref_ids"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_dnn_data_patch_convertToJSON() failed bdt_ref_ids"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) { ogs_error("OpenAPI_sm_policy_dnn_data_patch_convertToJSON() failed inner"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_policy_snssai_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_policy_snssai_data.c
Changed
@@ -84,6 +84,14 @@ if (sm_policy_snssai_data->sm_policy_dnn_data) { OpenAPI_list_for_each(sm_policy_snssai_data->sm_policy_dnn_data, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_snssai_data_convertToJSON() failed sm_policy_dnn_data"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_snssai_data_convertToJSON() failed sm_policy_dnn_data"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_sm_policy_dnn_data_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_policy_snssai_data_patch.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_policy_snssai_data_patch.c
Changed
@@ -78,6 +78,14 @@ if (sm_policy_snssai_data_patch->sm_policy_dnn_data) { OpenAPI_list_for_each(sm_policy_snssai_data_patch->sm_policy_dnn_data, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_snssai_data_patch_convertToJSON() failed sm_policy_dnn_data"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_snssai_data_patch_convertToJSON() failed sm_policy_dnn_data"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_sm_policy_dnn_data_patch_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/sm_policy_update_context_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/sm_policy_update_context_data.c
Changed
@@ -724,6 +724,14 @@ if (sm_policy_update_context_data->rep_pra_infos) { OpenAPI_list_for_each(sm_policy_update_context_data->rep_pra_infos, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_sm_policy_update_context_data_convertToJSON() failed rep_pra_infos"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_sm_policy_update_context_data_convertToJSON() failed rep_pra_infos"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/smf_change_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/smf_change_info.c
Changed
@@ -56,7 +56,11 @@ goto end; } OpenAPI_list_for_each(smf_change_info->pdu_session_id_list, node) { - if (cJSON_AddNumberToObject(pdu_session_id_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_smf_change_info_convertToJSON() failed pdu_session_id_list"); + goto end; + } + if (cJSON_AddNumberToObject(pdu_session_id_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_smf_change_info_convertToJSON() failed pdu_session_id_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/smf_selection_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/smf_selection_data.c
Changed
@@ -86,6 +86,14 @@ if (smf_selection_data->candidates) { OpenAPI_list_for_each(smf_selection_data->candidates, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_smf_selection_data_convertToJSON() failed candidates"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_smf_selection_data_convertToJSON() failed candidates"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_candidate_for_replacement_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/smf_selection_subscription_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/smf_selection_subscription_data.c
Changed
@@ -82,6 +82,14 @@ if (smf_selection_subscription_data->subscribed_snssai_infos) { OpenAPI_list_for_each(smf_selection_subscription_data->subscribed_snssai_infos, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_smf_selection_subscription_data_convertToJSON() failed subscribed_snssai_infos"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_smf_selection_subscription_data_convertToJSON() failed subscribed_snssai_infos"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_snssai_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/spatial_validity.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/spatial_validity.c
Changed
@@ -60,6 +60,14 @@ if (spatial_validity->presence_info_list) { OpenAPI_list_for_each(spatial_validity->presence_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_spatial_validity_convertToJSON() failed presence_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_spatial_validity_convertToJSON() failed presence_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/spatial_validity_rm.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/spatial_validity_rm.c
Changed
@@ -60,6 +60,14 @@ if (spatial_validity_rm->presence_info_list) { OpenAPI_list_for_each(spatial_validity_rm->presence_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_spatial_validity_rm_convertToJSON() failed presence_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_spatial_validity_rm_convertToJSON() failed presence_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/suci_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/suci_info.c
Changed
@@ -74,7 +74,11 @@ goto end; } OpenAPI_list_for_each(suci_info->h_nw_pub_key_ids, node) { - if (cJSON_AddNumberToObject(h_nw_pub_key_idsList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_suci_info_convertToJSON() failed h_nw_pub_key_ids"); + goto end; + } + if (cJSON_AddNumberToObject(h_nw_pub_key_idsList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_suci_info_convertToJSON() failed h_nw_pub_key_ids"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/traffic_descriptor_components.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/traffic_descriptor_components.c
Changed
@@ -102,6 +102,14 @@ if (traffic_descriptor_components->app_descs) { OpenAPI_list_for_each(traffic_descriptor_components->app_descs, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_traffic_descriptor_components_convertToJSON() failed app_descs"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_traffic_descriptor_components_convertToJSON() failed app_descs"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_app_descriptor_1_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/tsctsf_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/tsctsf_info.c
Changed
@@ -93,6 +93,14 @@ if (tsctsf_info->s_nssai_info_list) { OpenAPI_list_for_each(tsctsf_info->s_nssai_info_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_tsctsf_info_convertToJSON() failed s_nssai_info_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_tsctsf_info_convertToJSON() failed s_nssai_info_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_snssai_tsctsf_info_item_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/uc_subscription_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/uc_subscription_data.c
Changed
@@ -56,6 +56,14 @@ if (uc_subscription_data->user_consent_per_purpose_list) { OpenAPI_list_for_each(uc_subscription_data->user_consent_per_purpose_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_uc_subscription_data_convertToJSON() failed user_consent_per_purpose_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_uc_subscription_data_convertToJSON() failed user_consent_per_purpose_list"); + goto end; + } if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, OpenAPI_user_consent_ToString((intptr_t)localKeyValue->value)) == NULL) { ogs_error("OpenAPI_uc_subscription_data_convertToJSON() failed user_consent_per_purpose_list"); goto end;
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/udsf_info.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/udsf_info.c
Changed
@@ -95,6 +95,14 @@ if (udsf_info->storage_id_ranges) { OpenAPI_list_for_each(udsf_info->storage_id_ranges, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_udsf_info_convertToJSON() failed storage_id_ranges"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_udsf_info_convertToJSON() failed storage_id_ranges"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_identity_range_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ue_authentication_ctx.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ue_authentication_ctx.c
Changed
@@ -98,6 +98,14 @@ if (ue_authentication_ctx->_links) { OpenAPI_list_for_each(ue_authentication_ctx->_links, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_authentication_ctx_convertToJSON() failed _links"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_authentication_ctx_convertToJSON() failed _links"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ue_context.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ue_context.c
Changed
@@ -649,6 +649,14 @@ if (ue_context->sub_ue_slice_mbr_list) { OpenAPI_list_for_each(ue_context->sub_ue_slice_mbr_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_context_convertToJSON() failed sub_ue_slice_mbr_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_context_convertToJSON() failed sub_ue_slice_mbr_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_slice_mbr_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1162,6 +1170,14 @@ if (ue_context->pra_in_am_policy) { OpenAPI_list_for_each(ue_context->pra_in_am_policy, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_context_convertToJSON() failed pra_in_am_policy"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_context_convertToJSON() failed pra_in_am_policy"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1184,6 +1200,14 @@ if (ue_context->pra_in_ue_policy) { OpenAPI_list_for_each(ue_context->pra_in_ue_policy, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_context_convertToJSON() failed pra_in_ue_policy"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_context_convertToJSON() failed pra_in_ue_policy"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -1289,6 +1313,14 @@ if (ue_context->pcf_ue_slice_mbr_list) { OpenAPI_list_for_each(ue_context->pcf_ue_slice_mbr_list, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_context_convertToJSON() failed pcf_ue_slice_mbr_list"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_context_convertToJSON() failed pcf_ue_slice_mbr_list"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_slice_mbr_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ue_context_in_smf_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ue_context_in_smf_data.c
Changed
@@ -72,6 +72,14 @@ if (ue_context_in_smf_data->pdu_sessions) { OpenAPI_list_for_each(ue_context_in_smf_data->pdu_sessions, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_context_in_smf_data_convertToJSON() failed pdu_sessions"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_context_in_smf_data_convertToJSON() failed pdu_sessions"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_pdu_session_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ue_policy_set.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ue_policy_set.c
Changed
@@ -133,6 +133,14 @@ if (ue_policy_set->pra_infos) { OpenAPI_list_for_each(ue_policy_set->pra_infos, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed pra_infos"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed pra_infos"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_presence_info_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -169,6 +177,14 @@ if (ue_policy_set->ue_policy_sections) { OpenAPI_list_for_each(ue_policy_set->ue_policy_sections, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed ue_policy_sections"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed ue_policy_sections"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_ue_policy_section_convertToJSON(localKeyValue->value) : cJSON_CreateNull(); @@ -205,6 +221,14 @@ if (ue_policy_set->allowed_route_sel_descs) { OpenAPI_list_for_each(ue_policy_set->allowed_route_sel_descs, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed allowed_route_sel_descs"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed allowed_route_sel_descs"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_plmn_route_selection_descriptor_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ue_policy_set_patch.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ue_policy_set_patch.c
Changed
@@ -85,6 +85,14 @@ if (ue_policy_set_patch->ue_policy_sections) { OpenAPI_list_for_each(ue_policy_set_patch->ue_policy_sections, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_policy_set_patch_convertToJSON() failed ue_policy_sections"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_policy_set_patch_convertToJSON() failed ue_policy_sections"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_ue_policy_section_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ue_reg_status_update_req_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ue_reg_status_update_req_data.c
Changed
@@ -93,7 +93,11 @@ goto end; } OpenAPI_list_for_each(ue_reg_status_update_req_data->to_release_session_list, node) { - if (cJSON_AddNumberToObject(to_release_session_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_ue_reg_status_update_req_data_convertToJSON() failed to_release_session_list"); + goto end; + } + if (cJSON_AddNumberToObject(to_release_session_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_ue_reg_status_update_req_data_convertToJSON() failed to_release_session_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/ue_slice_mbr.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/ue_slice_mbr.c
Changed
@@ -72,6 +72,14 @@ if (ue_slice_mbr->slice_mbr) { OpenAPI_list_for_each(ue_slice_mbr->slice_mbr, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_ue_slice_mbr_convertToJSON() failed slice_mbr"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_ue_slice_mbr_convertToJSON() failed slice_mbr"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_slice_mbr_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/uri_list.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/uri_list.c
Changed
@@ -61,6 +61,14 @@ if (uri_list->_links) { OpenAPI_list_for_each(uri_list->_links, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_uri_list_convertToJSON() failed _links"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_uri_list_convertToJSON() failed _links"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/usage_mon_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/usage_mon_data.c
Changed
@@ -105,6 +105,14 @@ if (usage_mon_data->scopes) { OpenAPI_list_for_each(usage_mon_data->scopes, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_usage_mon_data_convertToJSON() failed scopes"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_usage_mon_data_convertToJSON() failed scopes"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_usage_mon_data_scope_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/usage_mon_data_limit.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/usage_mon_data_limit.c
Changed
@@ -102,6 +102,14 @@ if (usage_mon_data_limit->scopes) { OpenAPI_list_for_each(usage_mon_data_limit->scopes, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_usage_mon_data_limit_convertToJSON() failed scopes"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_usage_mon_data_limit_convertToJSON() failed scopes"); + goto end; + } cJSON *itemLocal = localKeyValue->value ? OpenAPI_usage_mon_data_scope_convertToJSON(localKeyValue->value) : cJSON_CreateNull();
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/vsmf_update_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/vsmf_update_data.c
Changed
@@ -309,7 +309,11 @@ goto end; } OpenAPI_list_for_each(vsmf_update_data->revoke_ebi_list, node) { - if (cJSON_AddNumberToObject(revoke_ebi_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_vsmf_update_data_convertToJSON() failed revoke_ebi_list"); + goto end; + } + if (cJSON_AddNumberToObject(revoke_ebi_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_vsmf_update_data_convertToJSON() failed revoke_ebi_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/openapi/model/vsmf_updated_data.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/openapi/model/vsmf_updated_data.c
Changed
@@ -332,7 +332,11 @@ goto end; } OpenAPI_list_for_each(vsmf_updated_data->released_ebi_list, node) { - if (cJSON_AddNumberToObject(released_ebi_listList, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_vsmf_updated_data_convertToJSON() failed released_ebi_list"); + goto end; + } + if (cJSON_AddNumberToObject(released_ebi_listList, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_vsmf_updated_data_convertToJSON() failed released_ebi_list"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/lib/sbi/support/r17-20230301-openapitools-6.4.0/openapi-generator/templates/model-body.mustache -> open5gs_2.6.3.8.16387.202305140026.tar.xz/lib/sbi/support/r17-20230301-openapitools-6.4.0/openapi-generator/templates/model-body.mustache
Changed
@@ -487,7 +487,11 @@ } {{/isByteArray}} {{#isNumeric}} - if (cJSON_AddNumberToObject({{{name}}}List, "", (uintptr_t)node->data) == NULL) { + if (node->data == NULL) { + ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}"); + goto end; + } + if (cJSON_AddNumberToObject({{{name}}}List, "", *(double *)node->data) == NULL) { ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}"); goto end; } @@ -521,6 +525,14 @@ if ({{{classname}}}->{{{name}}}) { OpenAPI_list_for_each({{{classname}}}->{{{name}}}, node) { OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data; + if (localKeyValue == NULL) { + ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}"); + goto end; + } + if (localKeyValue->key == NULL) { + ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}"); + goto end; + } {{#isEnum}} if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, OpenAPI_{{{complexType}}}_ToString((intptr_t)localKeyValue->value)) == NULL) { ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}"); @@ -543,7 +555,11 @@ } {{/isByteArray}} {{#isNumeric}} - if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) { + if (localKeyValue->value == NULL) { + ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}"); + goto end; + } + if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) { ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}"); goto end; }
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/src/amf/gmm-handler.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/src/amf/gmm-handler.c
Changed
@@ -336,7 +336,7 @@ { amf_sess_t *sess = NULL; uint16_t psimask; - int i = 0; + int i = 0, served_tai_index = 0; ogs_nas_5gs_tracking_area_identity_t *last_visited_registered_tai = NULL; ogs_nas_uplink_data_status_t *uplink_data_status = NULL; @@ -356,6 +356,14 @@ update_type = ®istration_request->update_type; ogs_assert(update_type); + served_tai_index = amf_find_served_tai(&amf_ue->nr_tai); + if (served_tai_index < 0) { + ogs_error("Cannot find Served TAIPLMN_ID:%06x,TAC:%d", + ogs_plmn_id_hexdump(&amf_ue->nr_tai.plmn_id), amf_ue->nr_tai.tac.v); + return OGS_5GMM_CAUSE_TRACKING_AREA_NOT_ALLOWED; + } + ogs_debug(" SERVED_TAI_INDEX%d", served_tai_index); + if (registration_request->presencemask & OGS_NAS_5GS_REGISTRATION_REQUEST_NAS_MESSAGE_CONTAINER_PRESENT) {
View file
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/src/scp/context.c -> open5gs_2.6.3.8.16387.202305140026.tar.xz/src/scp/context.c
Changed
@@ -100,6 +100,146 @@ /* handle config in sbi library */ } else if (!strcmp(scp_key, "discovery")) { /* handle config in sbi library */ + } else if (!strcmp(scp_key, "info")) { + ogs_sbi_nf_instance_t *nf_instance = NULL; + ogs_sbi_nf_info_t *nf_info = NULL; + ogs_sbi_scp_info_t *scp_info = NULL; + + ogs_yaml_iter_t info_iter; + ogs_yaml_iter_recurse(&scp_iter, &info_iter); + + nf_instance = ogs_sbi_self()->nf_instance; + ogs_assert(nf_instance); + + nf_info = ogs_sbi_nf_info_add( + &nf_instance->nf_info_list, + OpenAPI_nf_type_SCP); + ogs_assert(nf_info); + + scp_info = &nf_info->scp; + + while (ogs_yaml_iter_next(&info_iter)) { + const char *info_key = + ogs_yaml_iter_key(&info_iter); + ogs_assert(info_key); + if (!strcmp(info_key, "domain")) { + ogs_yaml_iter_t domain_array, domain_iter; + ogs_yaml_iter_recurse(&info_iter, &domain_array); + + do { + if (ogs_yaml_iter_type(&domain_array) == + YAML_MAPPING_NODE) { + memcpy(&domain_iter, &domain_array, + sizeof(ogs_yaml_iter_t)); + } else if (ogs_yaml_iter_type(&domain_array) == + YAML_SEQUENCE_NODE) { + if (!ogs_yaml_iter_next(&domain_array)) + break; + ogs_yaml_iter_recurse(&domain_array, + &domain_iter); + } else if (ogs_yaml_iter_type(&domain_array) == + YAML_SCALAR_NODE) { + break; + } else + ogs_assert_if_reached(); + + while (ogs_yaml_iter_next(&domain_iter)) { + const char *domain_key = + ogs_yaml_iter_key(&domain_iter); + ogs_assert(domain_key); + if (!strcmp(domain_key, "port")) { + ogs_yaml_iter_t port_iter; + ogs_yaml_iter_recurse(&domain_iter, + &port_iter); + while (ogs_yaml_iter_next(&port_iter)) { + const char *port_key = + ogs_yaml_iter_key(&port_iter); + ogs_assert(port_key); + if (!strcmp(port_key, "http")) { + const char *v = + ogs_yaml_iter_value( + &port_iter); + if (v) { + scp_info->domain + scp_info-> + num_of_domain. + http.presence = + true; + scp_info->domain + scp_info-> + num_of_domain. + http.port = atoi(v); + } + } else if (!strcmp(port_key, + "https")) { + const char *v = + ogs_yaml_iter_value( + &port_iter); + if (v) { + scp_info->domain + scp_info-> + num_of_domain. + https.presence = + true; + scp_info->domain + scp_info-> + num_of_domain. + https.port = + atoi(v); + } + } else + ogs_warn("unknown key `%s`", + port_key); + } + } else if (!strcmp(domain_key, "name")) { + scp_info->domain + scp_info->num_of_domain. + name = (char *)ogs_yaml_iter_value( + &domain_iter); + } else if (!strcmp(domain_key, "fqdn")) { + scp_info->domain + scp_info->num_of_domain. + fqdn = (char *)ogs_yaml_iter_value( + &domain_iter); + } else + ogs_warn("unknown key `%s`", + domain_key); + } + + if (scp_info->domain + scp_info->num_of_domain.name) + scp_info->num_of_domain++; + + } while (ogs_yaml_iter_type(&domain_array) == + YAML_SEQUENCE_NODE); + + } else if (!strcmp(info_key, "port")) { + ogs_yaml_iter_t port_iter; + ogs_yaml_iter_recurse(&info_iter, &port_iter); + while (ogs_yaml_iter_next(&port_iter)) { + const char *port_key = + ogs_yaml_iter_key(&port_iter); + ogs_assert(port_key); + if (!strcmp(port_key, "http")) { + const char *v = + ogs_yaml_iter_value(&port_iter); + if (v) { + scp_info->http.presence = true; + scp_info->http.port = atoi(v); + } + } else if (!strcmp(port_key, "https")) { + const char *v = + ogs_yaml_iter_value(&port_iter); + if (v) { + scp_info->https.presence = true; + scp_info->https.port = atoi(v); + } + } else + ogs_warn("unknown key `%s`", port_key); + } + } else + ogs_warn("unknown key `%s`", info_key); + } } else ogs_warn("unknown key `%s`", scp_key); }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.