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.
Changes of Revision 325
open5gs_2.6.3.6.1ba7a.202305130026.dsc -> open5gs_2.6.3.8.16387.202305140026.dsc
Changed
x
1
2
Source: open5gs
3
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
4
Architecture: any
5
-Version: 2.6.3.6.1ba7a.202305130026
6
+Version: 2.6.3.8.16387.202305140026
7
Maintainer: Harald Welte <laforge@gnumonks.org>
8
Uploaders: Sukchan Lee <acetcom@gmail.com>
9
Homepage: https://open5gs.org
10
11
open5gs-udr deb net optional arch=any
12
open5gs-upf deb net optional arch=any
13
Checksums-Sha1:
14
- b6071c31ae79fc74235c63474bff081ff0b1e856 14117996 open5gs_2.6.3.6.1ba7a.202305130026.tar.xz
15
+ 5d5a588e20615cb083ee5a621d2bed59d0bc040d 14123172 open5gs_2.6.3.8.16387.202305140026.tar.xz
16
Checksums-Sha256:
17
- 165c8729a1b13b761b0b10b39ca75d52b6f90b67daf2a023c4c4bec6ebc72cde 14117996 open5gs_2.6.3.6.1ba7a.202305130026.tar.xz
18
+ d80fefd3c5f80e26f24f957d4aa68f625ace061936cde9e2288b0cabe7c30449 14123172 open5gs_2.6.3.8.16387.202305140026.tar.xz
19
Files:
20
- 7d5e13fd30f1fe61c6c0adf76765b270 14117996 open5gs_2.6.3.6.1ba7a.202305130026.tar.xz
21
+ b078b32e7a89d5c21195614e6375ff60 14123172 open5gs_2.6.3.8.16387.202305140026.tar.xz
22
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/.tarball-version -> open5gs_2.6.3.8.16387.202305140026.tar.xz/.tarball-version
Changed
4
1
2
-2.6.3.6-1ba7a.202305130026
3
+2.6.3.8-16387.202305140026
4
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
53
1
2
# l_onoff: true
3
# l_linger: 10
4
#
5
+# <SCP Information>
6
+#
7
+# o SCP port number(s) WITHOUT SCP Domain
8
+# - If no SCP port information is present in ScpInfo or
9
+# in ScpDomainInfo for a specific SCP domain,
10
+# the HTTP client shall use the default HTTP port number,
11
+# i.e. TCP port 80 for "http" URIs or TCP port 443
12
+# for "https" URIs as specified in IETF RFC 7540 9
13
+# when sending a request to the SCP within the specific SCP domain.
14
+# scp:
15
+# info:
16
+# port:
17
+# http: 7777
18
+# https: 8888
19
+#
20
+# o SCP port number(s) WITH SCP Domain
21
+# - If this attribute is present,
22
+# it has precedence over the scpPorts attribute of ScpInfo.
23
+# scp:
24
+# info:
25
+# domain:
26
+# - name: SCP_Domain_1
27
+# fqdn: scp.localdomain
28
+# port:
29
+# http: 7777
30
+# https: 8888
31
+#
32
+# o Complex Example
33
+# scp:
34
+# info:
35
+# port:
36
+# http: 7777
37
+# https: 8888
38
+# domain:
39
+# - name: SCP_Domain_1
40
+# fqdn: scp.hplmndomain
41
+# port:
42
+# http: 3333
43
+# https: 4444
44
+# - name: SCP_Domain_2
45
+# fqdn: scp.vplmndomain
46
+# port:
47
+# http: 5555
48
+# https: 6666
49
+#
50
# <For Indirect Communication with Delegated Discovery>
51
#
52
# o (Default) If you do not set Delegated Discovery as shown below,
53
open5gs_2.6.3.6.1ba7a.202305130026.tar.xz/debian/changelog -> open5gs_2.6.3.8.16387.202305140026.tar.xz/debian/changelog
Changed
12
1
2
-open5gs (2.6.3.6.1ba7a.202305130026) unstable; urgency=medium
3
+open5gs (2.6.3.8.16387.202305140026) unstable; urgency=medium
4
5
* Automatically generated changelog entry for building the Osmocom nightly feed
6
7
- -- Osmocom OBS scripts <info@osmocom.org> Sat, 13 May 2023 00:27:49 +0000
8
+ -- Osmocom OBS scripts <info@osmocom.org> Sun, 14 May 2023 00:27:39 +0000
9
10
open5gs (2.6.3) unstable; urgency=medium
11
12
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
18
1
2
3
return x;
4
}
5
+
6
+double *ogs_alloc_double(double value)
7
+{
8
+ double *mem = (double *)ogs_calloc(1, sizeof(double));
9
+ if (!mem) {
10
+ ogs_error("No memory");
11
+ return NULL;
12
+ }
13
+
14
+ *mem = value;
15
+
16
+ return mem;
17
+}
18
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
10
1
2
ogs_uint24_t ogs_uint24_from_string(char *str);
3
uint64_t ogs_uint64_from_string(char *str);
4
5
+double *ogs_alloc_double(double value);
6
+
7
#ifdef __cplusplus
8
}
9
#endif
10
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
13
1
2
unsigned int size;
3
} ogs_datum_t;
4
5
+typedef struct ogs_port_s {
6
+ bool presence;
7
+ uint16_t port;
8
+} ogs_port_t;
9
+
10
#ifdef __cplusplus
11
}
12
#endif
13
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
23
1
2
ogs_pool_free(&smf_info_pool, smf_info);
3
}
4
5
+static void scp_info_free(ogs_sbi_scp_info_t *scp_info)
6
+{
7
+ scp_info->num_of_domain = 0;
8
+}
9
+
10
void ogs_sbi_nf_info_remove(ogs_list_t *list, ogs_sbi_nf_info_t *nf_info)
11
{
12
ogs_assert(list);
13
14
case OpenAPI_nf_type_SMF:
15
smf_info_free(&nf_info->smf);
16
break;
17
+ case OpenAPI_nf_type_SCP:
18
+ scp_info_free(&nf_info->scp);
19
+ break;
20
default:
21
ogs_fatal("Not implemented NF-type%s",
22
OpenAPI_nf_type_ToString(nf_info->nf_type));
23
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
36
1
2
#endif
3
4
#define OGS_MAX_NUM_OF_NF_INFO 8
5
+#define OGS_MAX_NUM_OF_SCP_DOMAIN 8
6
7
typedef struct ogs_sbi_client_s ogs_sbi_client_t;
8
typedef struct ogs_sbi_smf_info_s ogs_sbi_smf_info_t;
9
10
} nr_tai_rangeOGS_MAX_NUM_OF_TAI;
11
} ogs_sbi_smf_info_t;
12
13
+typedef struct ogs_sbi_scp_info_s {
14
+ ogs_port_t http, https;
15
+
16
+ int num_of_domain;
17
+ struct {
18
+ char *name;
19
+ char *fqdn;
20
+ ogs_port_t http, https;
21
+ } domainOGS_MAX_NUM_OF_SCP_DOMAIN;
22
+
23
+} ogs_sbi_scp_info_t;
24
+
25
typedef struct ogs_sbi_amf_info_s {
26
int amf_set_id;
27
int amf_region_id;
28
29
union {
30
ogs_sbi_smf_info_t smf;
31
ogs_sbi_amf_info_t amf;
32
+ ogs_sbi_scp_info_t scp;
33
};
34
} ogs_sbi_nf_info_t;
35
36
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
201
1
2
static void free_nf_service(OpenAPI_nf_service_t *NFService);
3
static OpenAPI_smf_info_t *build_smf_info(ogs_sbi_nf_info_t *nf_info);
4
static OpenAPI_amf_info_t *build_amf_info(ogs_sbi_nf_info_t *nf_info);
5
+static OpenAPI_scp_info_t *build_scp_info(ogs_sbi_nf_info_t *nf_info);
6
static void free_smf_info(OpenAPI_smf_info_t *SmfInfo);
7
static void free_amf_info(OpenAPI_amf_info_t *AmfInfo);
8
+static void free_scp_info(OpenAPI_scp_info_t *ScpInfo);
9
10
ogs_sbi_request_t *ogs_nnrf_nfm_build_register(void)
11
{
12
13
OpenAPI_map_t *NFServiceMap = NULL;
14
OpenAPI_list_t *InfoList = NULL;
15
OpenAPI_map_t *InfoMap = NULL;
16
- OpenAPI_smf_info_t *SmfInfo = NULL;
17
int InfoMapKey;
18
19
OpenAPI_lnode_t *node = NULL;
20
21
+ OpenAPI_smf_info_t *SmfInfo = NULL;
22
OpenAPI_amf_info_t *AmfInfo = NULL;
23
24
int i = 0;
25
26
27
OpenAPI_list_add(InfoList, InfoMap);
28
29
+ } else if (nf_info->nf_type == OpenAPI_nf_type_SCP) {
30
+
31
+ /* SCP info will be skipped here first and dealt with below. */
32
+
33
+ } else if (nf_info->nf_type == OpenAPI_nf_type_SEPP) {
34
+
35
+ /* SEPP info will be skipped here first and dealt with below. */
36
+
37
} else {
38
ogs_fatal("Not implemented NF-type%s",
39
OpenAPI_nf_type_ToString(nf_info->nf_type));
40
41
} else
42
OpenAPI_list_free(InfoList);
43
44
+ /* There can only be one SCP info, not multiple. */
45
+ nf_info = ogs_sbi_nf_info_find(
46
+ &nf_instance->nf_info_list, OpenAPI_nf_type_SCP);
47
+ if (nf_info) {
48
+ NFProfile->scp_info = build_scp_info(nf_info);
49
+ ogs_assert(NFProfile->scp_info);
50
+ }
51
+
52
return NFProfile;
53
}
54
55
56
if (NFProfile->amf_info)
57
free_amf_info(NFProfile->amf_info);
58
59
+ if (NFProfile->scp_info)
60
+ free_scp_info(NFProfile->scp_info);
61
+
62
ogs_free(NFProfile);
63
}
64
65
66
return AmfInfo;
67
}
68
69
+static OpenAPI_scp_info_t *build_scp_info(ogs_sbi_nf_info_t *nf_info)
70
+{
71
+ int i;
72
+ OpenAPI_scp_info_t *ScpInfo = NULL;
73
+ OpenAPI_list_t *PortList = NULL;
74
+ OpenAPI_map_t *PortMap = NULL;
75
+
76
+ OpenAPI_list_t *DomainInfoList = NULL;
77
+ OpenAPI_map_t *DomainInfoMap = NULL;
78
+ OpenAPI_scp_domain_info_t *DomainInfo = NULL;
79
+
80
+ ogs_assert(nf_info);
81
+
82
+ ScpInfo = ogs_calloc(1, sizeof(*ScpInfo));
83
+ if (!ScpInfo) {
84
+ ogs_error("No ScpInfo");
85
+ return NULL;
86
+ }
87
+
88
+ PortList = OpenAPI_list_create();
89
+ if (!PortList) {
90
+ ogs_error("No PortList");
91
+ free_scp_info(ScpInfo);
92
+ return NULL;
93
+ }
94
+
95
+ if (nf_info->scp.http.presence) {
96
+ PortMap = OpenAPI_map_create(
97
+ (char *)"http", ogs_alloc_double(nf_info->scp.http.port));
98
+ if (!PortMap) {
99
+ ogs_error("No PortMap");
100
+ free_scp_info(ScpInfo);
101
+ return NULL;
102
+ }
103
+ OpenAPI_list_add(PortList, PortMap);
104
+ }
105
+ if (nf_info->scp.https.presence) {
106
+ PortMap = OpenAPI_map_create(
107
+ (char *)"https", ogs_alloc_double(nf_info->scp.https.port));
108
+ if (!PortMap) {
109
+ ogs_error("No PortMap");
110
+ free_scp_info(ScpInfo);
111
+ return NULL;
112
+ }
113
+ OpenAPI_list_add(PortList, PortMap);
114
+ }
115
+
116
+ if (PortList->count)
117
+ ScpInfo->scp_ports = PortList;
118
+ else
119
+ OpenAPI_list_free(PortList);
120
+
121
+ DomainInfoList = OpenAPI_list_create();
122
+ if (!DomainInfoList) {
123
+ ogs_error("No DomainInfoList");
124
+ free_scp_info(ScpInfo);
125
+ return NULL;
126
+ }
127
+ for (i = 0; i < nf_info->scp.num_of_domain; i++) {
128
+ ogs_assert(nf_info->scp.domaini.name);
129
+
130
+ DomainInfo = ogs_calloc(1, sizeof(*DomainInfo));
131
+ if (!DomainInfo) {
132
+ ogs_error("No DomainInfo");
133
+ free_scp_info(ScpInfo);
134
+ return NULL;
135
+ }
136
+
137
+ DomainInfo->scp_fqdn = nf_info->scp.domaini.fqdn;
138
+
139
+ PortList = OpenAPI_list_create();
140
+ if (!PortList) {
141
+ ogs_error("No PortList");
142
+ free_scp_info(ScpInfo);
143
+ return NULL;
144
+ }
145
+
146
+ if (nf_info->scp.domaini.http.presence) {
147
+ PortMap = OpenAPI_map_create(
148
+ (char *)"http",
149
+ ogs_alloc_double(nf_info->scp.domaini.http.port));
150
+ if (!PortMap) {
151
+ ogs_error("No PortMap");
152
+ free_scp_info(ScpInfo);
153
+ return NULL;
154
+ }
155
+ OpenAPI_list_add(PortList, PortMap);
156
+ }
157
+ if (nf_info->scp.domaini.https.presence) {
158
+ PortMap = OpenAPI_map_create(
159
+ (char *)"https",
160
+ ogs_alloc_double(nf_info->scp.domaini.https.port));
161
+ if (!PortMap) {
162
+ ogs_error("No PortMap");
163
+ free_scp_info(ScpInfo);
164
+ return NULL;
165
+ }
166
+ OpenAPI_list_add(PortList, PortMap);
167
+ }
168
+
169
+ if (PortList->count)
170
+ DomainInfo->scp_ports = PortList;
171
+ else
172
+ OpenAPI_list_free(PortList);
173
+
174
+ DomainInfoMap = OpenAPI_map_create(
175
+ nf_info->scp.domaini.name, DomainInfo);
176
+ if (!DomainInfoMap) {
177
+ ogs_error("No PortMap");
178
+ free_scp_info(ScpInfo);
179
+ return NULL;
180
+ }
181
+
182
+ OpenAPI_list_add(DomainInfoList, DomainInfoMap);
183
+ }
184
+
185
+ if (DomainInfoList->count)
186
+ ScpInfo->scp_domain_info_list = DomainInfoList;
187
+ else
188
+ OpenAPI_list_free(DomainInfoList);
189
+
190
+ return ScpInfo;
191
+}
192
+
193
static void free_smf_info(OpenAPI_smf_info_t *SmfInfo)
194
{
195
OpenAPI_list_t *sNssaiSmfInfoList = NULL;
196
197
ogs_free(AmfInfo);
198
}
199
200
+static void free_scp_info(OpenAPI_scp_info_t *ScpInfo)
201
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
16
1
2
if (acceptable_service_info->acc_bw_med_comps) {
3
OpenAPI_list_for_each(acceptable_service_info->acc_bw_med_comps, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_acceptable_service_info_convertToJSON() failed acc_bw_med_comps");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_acceptable_service_info_convertToJSON() failed acc_bw_med_comps");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_media_component_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
31
1
2
if (access_and_mobility_subscription_data->shared_vn_group_data_ids) {
3
OpenAPI_list_for_each(access_and_mobility_subscription_data->shared_vn_group_data_ids, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed shared_vn_group_data_ids");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed shared_vn_group_data_ids");
11
+ goto end;
12
+ }
13
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) {
14
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed inner");
15
goto end;
16
17
if (access_and_mobility_subscription_data->adjacent_plmn_restrictions) {
18
OpenAPI_list_for_each(access_and_mobility_subscription_data->adjacent_plmn_restrictions, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed adjacent_plmn_restrictions");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed adjacent_plmn_restrictions");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_plmn_restriction_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
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
31
1
2
if (access_and_mobility_subscription_data_1->shared_vn_group_data_ids) {
3
OpenAPI_list_for_each(access_and_mobility_subscription_data_1->shared_vn_group_data_ids, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed shared_vn_group_data_ids");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed shared_vn_group_data_ids");
11
+ goto end;
12
+ }
13
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) {
14
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed inner");
15
goto end;
16
17
if (access_and_mobility_subscription_data_1->adjacent_plmn_restrictions) {
18
OpenAPI_list_for_each(access_and_mobility_subscription_data_1->adjacent_plmn_restrictions, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed adjacent_plmn_restrictions");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed adjacent_plmn_restrictions");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_plmn_restriction_1_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
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
16
1
2
if (am_policy_data->pra_infos) {
3
OpenAPI_list_for_each(am_policy_data->pra_infos, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_am_policy_data_convertToJSON() failed pra_infos");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_am_policy_data_convertToJSON() failed pra_infos");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (am_requested_value_rep->pra_statuses) {
3
OpenAPI_list_for_each(am_requested_value_rep->pra_statuses, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_am_requested_value_rep_convertToJSON() failed pra_statuses");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_am_requested_value_rep_convertToJSON() failed pra_statuses");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (amf_event->presence_info_list) {
3
OpenAPI_list_for_each(amf_event->presence_info_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_amf_event_convertToJSON() failed presence_info_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_amf_event_convertToJSON() failed presence_info_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (amf_event_subscription_add_info->aoi_state_list) {
3
OpenAPI_list_for_each(amf_event_subscription_add_info->aoi_state_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_amf_event_subscription_add_info_convertToJSON() failed aoi_state_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_amf_event_subscription_add_info_convertToJSON() failed aoi_state_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_area_of_interest_event_state_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (app_descriptor_1->app_ids) {
3
OpenAPI_list_for_each(app_descriptor_1->app_ids, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_app_descriptor_1_convertToJSON() failed app_ids");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_app_descriptor_1_convertToJSON() failed app_ids");
11
+ goto end;
12
+ }
13
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) {
14
ogs_error("OpenAPI_app_descriptor_1_convertToJSON() failed inner");
15
goto end;
16
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
16
1
2
if (app_session_context_req_data->med_components) {
3
OpenAPI_list_for_each(app_session_context_req_data->med_components, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_app_session_context_req_data_convertToJSON() failed med_components");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_app_session_context_req_data_convertToJSON() failed med_components");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_media_component_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (app_session_context_update_data->med_components) {
3
OpenAPI_list_for_each(app_session_context_update_data->med_components, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_app_session_context_update_data_convertToJSON() failed med_components");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_app_session_context_update_data_convertToJSON() failed med_components");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_media_component_rm_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (area_scope->tac_info_per_plmn) {
3
OpenAPI_list_for_each(area_scope->tac_info_per_plmn, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_area_scope_convertToJSON() failed tac_info_per_plmn");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_area_scope_convertToJSON() failed tac_info_per_plmn");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_tac_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(assign_ebi_data->released_ebi_list, node) {
5
- if (cJSON_AddNumberToObject(released_ebi_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_assign_ebi_data_convertToJSON() failed released_ebi_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(released_ebi_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_assign_ebi_data_convertToJSON() failed released_ebi_list");
12
goto end;
13
}
14
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
27
1
2
goto end;
3
}
4
OpenAPI_list_for_each(assigned_ebi_data->released_ebi_list, node) {
5
- if (cJSON_AddNumberToObject(released_ebi_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_assigned_ebi_data_convertToJSON() failed released_ebi_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(released_ebi_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_assigned_ebi_data_convertToJSON() failed released_ebi_list");
12
goto end;
13
}
14
15
goto end;
16
}
17
OpenAPI_list_for_each(assigned_ebi_data->modified_ebi_list, node) {
18
- if (cJSON_AddNumberToObject(modified_ebi_listList, "", (uintptr_t)node->data) == NULL) {
19
+ if (node->data == NULL) {
20
+ ogs_error("OpenAPI_assigned_ebi_data_convertToJSON() failed modified_ebi_list");
21
+ goto end;
22
+ }
23
+ if (cJSON_AddNumberToObject(modified_ebi_listList, "", *(double *)node->data) == NULL) {
24
ogs_error("OpenAPI_assigned_ebi_data_convertToJSON() failed modified_ebi_list");
25
goto end;
26
}
27
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
16
1
2
if (authorized_network_slice_info->nrf_oauth2_required) {
3
OpenAPI_list_for_each(authorized_network_slice_info->nrf_oauth2_required, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_authorized_network_slice_info_convertToJSON() failed nrf_oauth2_required");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_authorized_network_slice_info_convertToJSON() failed nrf_oauth2_required");
11
+ goto end;
12
+ }
13
if (cJSON_AddBoolToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
14
ogs_error("OpenAPI_authorized_network_slice_info_convertToJSON() failed inner");
15
goto end;
16
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
16
1
2
if (cag_data->cag_infos) {
3
OpenAPI_list_for_each(cag_data->cag_infos, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_cag_data_convertToJSON() failed cag_infos");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_cag_data_convertToJSON() failed cag_infos");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_cag_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (cag_data_1->cag_infos) {
3
OpenAPI_list_for_each(cag_data_1->cag_infos, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_cag_data_1_convertToJSON() failed cag_infos");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_cag_data_1_convertToJSON() failed cag_infos");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_cag_info_1_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (default_notification_subscription->service_info_list) {
3
OpenAPI_list_for_each(default_notification_subscription->service_info_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_default_notification_subscription_convertToJSON() failed service_info_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_default_notification_subscription_convertToJSON() failed service_info_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_def_sub_service_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (dnn_upf_info_item->dnai_nw_instance_list) {
3
OpenAPI_list_for_each(dnn_upf_info_item->dnai_nw_instance_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_dnn_upf_info_item_convertToJSON() failed dnai_nw_instance_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_dnn_upf_info_item_convertToJSON() failed dnai_nw_instance_list");
11
+ goto end;
12
+ }
13
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) {
14
ogs_error("OpenAPI_dnn_upf_info_item_convertToJSON() failed inner");
15
goto end;
16
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
16
1
2
if (eap_auth_method_200_response->_links) {
3
OpenAPI_list_for_each(eap_auth_method_200_response->_links, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_eap_auth_method_200_response_convertToJSON() failed _links");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_eap_auth_method_200_response_convertToJSON() failed _links");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (eap_session->_links) {
3
OpenAPI_list_for_each(eap_session->_links, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_eap_session_convertToJSON() failed _links");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_eap_session_convertToJSON() failed _links");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (ee_group_profile_data->allowed_mtc_provider) {
3
OpenAPI_list_for_each(ee_group_profile_data->allowed_mtc_provider, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ee_group_profile_data_convertToJSON() failed allowed_mtc_provider");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ee_group_profile_data_convertToJSON() failed allowed_mtc_provider");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_mtc_provider_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (ee_profile_data->allowed_mtc_provider) {
3
OpenAPI_list_for_each(ee_profile_data->allowed_mtc_provider, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ee_profile_data_convertToJSON() failed allowed_mtc_provider");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ee_profile_data_convertToJSON() failed allowed_mtc_provider");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_mtc_provider_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (ee_subscription->monitoring_configurations) {
3
OpenAPI_list_for_each(ee_subscription->monitoring_configurations, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ee_subscription_convertToJSON() failed monitoring_configurations");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ee_subscription_convertToJSON() failed monitoring_configurations");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_monitoring_configuration_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (ee_subscription_1->monitoring_configurations) {
3
OpenAPI_list_for_each(ee_subscription_1->monitoring_configurations, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ee_subscription_1_convertToJSON() failed monitoring_configurations");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ee_subscription_1_convertToJSON() failed monitoring_configurations");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_monitoring_configuration_1_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (ee_subscription_ext->monitoring_configurations) {
3
OpenAPI_list_for_each(ee_subscription_ext->monitoring_configurations, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ee_subscription_ext_convertToJSON() failed monitoring_configurations");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ee_subscription_ext_convertToJSON() failed monitoring_configurations");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_monitoring_configuration_1_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (eps_interworking_info->eps_iwk_pgws) {
3
OpenAPI_list_for_each(eps_interworking_info->eps_iwk_pgws, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_eps_interworking_info_convertToJSON() failed eps_iwk_pgws");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_eps_interworking_info_convertToJSON() failed eps_iwk_pgws");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_eps_iwk_pgw_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(event_subscription->nsi_level_thrds, node) {
5
- if (cJSON_AddNumberToObject(nsi_level_thrdsList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_event_subscription_convertToJSON() failed nsi_level_thrds");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(nsi_level_thrdsList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_event_subscription_convertToJSON() failed nsi_level_thrds");
12
goto end;
13
}
14
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
16
1
2
if (ext_amf_event_subscription->aoi_state_list) {
3
OpenAPI_list_for_each(ext_amf_event_subscription->aoi_state_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ext_amf_event_subscription_convertToJSON() failed aoi_state_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ext_amf_event_subscription_convertToJSON() failed aoi_state_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_area_of_interest_event_state_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
27
1
2
goto end;
3
}
4
OpenAPI_list_for_each(flows->cont_vers, node) {
5
- if (cJSON_AddNumberToObject(cont_versList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_flows_convertToJSON() failed cont_vers");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(cont_versList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_flows_convertToJSON() failed cont_vers");
12
goto end;
13
}
14
15
goto end;
16
}
17
OpenAPI_list_for_each(flows->f_nums, node) {
18
- if (cJSON_AddNumberToObject(f_numsList, "", (uintptr_t)node->data) == NULL) {
19
+ if (node->data == NULL) {
20
+ ogs_error("OpenAPI_flows_convertToJSON() failed f_nums");
21
+ goto end;
22
+ }
23
+ if (cJSON_AddNumberToObject(f_numsList, "", *(double *)node->data) == NULL) {
24
ogs_error("OpenAPI_flows_convertToJSON() failed f_nums");
25
goto end;
26
}
27
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
27
1
2
goto end;
3
}
4
OpenAPI_list_for_each(hsmf_update_data->eps_bearer_id, node) {
5
- if (cJSON_AddNumberToObject(eps_bearer_idList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed eps_bearer_id");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(eps_bearer_idList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed eps_bearer_id");
12
goto end;
13
}
14
15
goto end;
16
}
17
OpenAPI_list_for_each(hsmf_update_data->revoke_ebi_list, node) {
18
- if (cJSON_AddNumberToObject(revoke_ebi_listList, "", (uintptr_t)node->data) == NULL) {
19
+ if (node->data == NULL) {
20
+ ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed revoke_ebi_list");
21
+ goto end;
22
+ }
23
+ if (cJSON_AddNumberToObject(revoke_ebi_listList, "", *(double *)node->data) == NULL) {
24
ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed revoke_ebi_list");
25
goto end;
26
}
27
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
16
1
2
if (identity_data->application_port_ids) {
3
OpenAPI_list_for_each(identity_data->application_port_ids, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_identity_data_convertToJSON() failed application_port_ids");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_identity_data_convertToJSON() failed application_port_ids");
11
+ goto end;
12
+ }
13
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) {
14
ogs_error("OpenAPI_identity_data_convertToJSON() failed inner");
15
goto end;
16
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
16
1
2
if (ie_info->is_modifiable_by_ipx) {
3
OpenAPI_list_for_each(ie_info->is_modifiable_by_ipx, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ie_info_convertToJSON() failed is_modifiable_by_ipx");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ie_info_convertToJSON() failed is_modifiable_by_ipx");
11
+ goto end;
12
+ }
13
if (cJSON_AddBoolToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
14
ogs_error("OpenAPI_ie_info_convertToJSON() failed inner");
15
goto end;
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(inter_freq_target_info->cell_id_list, node) {
5
- if (cJSON_AddNumberToObject(cell_id_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_inter_freq_target_info_convertToJSON() failed cell_id_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(cell_id_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_inter_freq_target_info_convertToJSON() failed cell_id_list");
12
goto end;
13
}
14
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(inter_freq_target_info_1->cell_id_list, node) {
5
- if (cJSON_AddNumberToObject(cell_id_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_inter_freq_target_info_1_convertToJSON() failed cell_id_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(cell_id_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_inter_freq_target_info_1_convertToJSON() failed cell_id_list");
12
goto end;
13
}
14
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
16
1
2
if (iptv_config_data->multi_acc_ctrls) {
3
OpenAPI_list_for_each(iptv_config_data->multi_acc_ctrls, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_iptv_config_data_convertToJSON() failed multi_acc_ctrls");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_iptv_config_data_convertToJSON() failed multi_acc_ctrls");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_multicast_access_control_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (iptv_config_data_patch->multi_acc_ctrls) {
3
OpenAPI_list_for_each(iptv_config_data_patch->multi_acc_ctrls, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_iptv_config_data_patch_convertToJSON() failed multi_acc_ctrls");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_iptv_config_data_patch_convertToJSON() failed multi_acc_ctrls");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_multicast_access_control_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
46
1
2
if (mb_smf_info->s_nssai_info_list) {
3
OpenAPI_list_for_each(mb_smf_info->s_nssai_info_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed s_nssai_info_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed s_nssai_info_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_snssai_mb_smf_info_item_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (mb_smf_info->tmgi_range_list) {
18
OpenAPI_list_for_each(mb_smf_info->tmgi_range_list, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed tmgi_range_list");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed tmgi_range_list");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_tmgi_range_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
32
if (mb_smf_info->mbs_session_list) {
33
OpenAPI_list_for_each(mb_smf_info->mbs_session_list, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed mbs_session_list");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_mb_smf_info_convertToJSON() failed mbs_session_list");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_mbs_session_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
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
16
1
2
if (mbs_session->mbs_area_sessions) {
3
OpenAPI_list_for_each(mbs_session->mbs_area_sessions, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_mbs_session_convertToJSON() failed mbs_area_sessions");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_mbs_session_convertToJSON() failed mbs_area_sessions");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_mbs_service_area_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (media_component->med_sub_comps) {
3
OpenAPI_list_for_each(media_component->med_sub_comps, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_media_component_convertToJSON() failed med_sub_comps");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_media_component_convertToJSON() failed med_sub_comps");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_media_sub_component_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (media_component_rm->med_sub_comps) {
3
OpenAPI_list_for_each(media_component_rm->med_sub_comps, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_media_component_rm_convertToJSON() failed med_sub_comps");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_media_component_rm_convertToJSON() failed med_sub_comps");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_media_sub_component_rm_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(n2_information_notification->to_release_session_list, node) {
5
- if (cJSON_AddNumberToObject(to_release_session_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_n2_information_notification_convertToJSON() failed to_release_session_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(to_release_session_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_n2_information_notification_convertToJSON() failed to_release_session_list");
12
goto end;
13
}
14
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(n4_information->n9_ul_pdr_id_list, node) {
5
- if (cJSON_AddNumberToObject(n9_ul_pdr_id_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_n4_information_convertToJSON() failed n9_ul_pdr_id_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(n9_ul_pdr_id_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_n4_information_convertToJSON() failed n9_ul_pdr_id_list");
12
goto end;
13
}
14
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
22
1
2
if (nf_instance_info->nrf_altered_priorities) {
3
OpenAPI_list_for_each(nf_instance_info->nrf_altered_priorities, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
- if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
6
+ if (localKeyValue == NULL) {
7
+ ogs_error("OpenAPI_nf_instance_info_convertToJSON() failed nrf_altered_priorities");
8
+ goto end;
9
+ }
10
+ if (localKeyValue->key == NULL) {
11
+ ogs_error("OpenAPI_nf_instance_info_convertToJSON() failed nrf_altered_priorities");
12
+ goto end;
13
+ }
14
+ if (localKeyValue->value == NULL) {
15
+ ogs_error("OpenAPI_nf_instance_info_convertToJSON() failed inner");
16
+ goto end;
17
+ }
18
+ if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) {
19
ogs_error("OpenAPI_nf_instance_info_convertToJSON() failed inner");
20
goto end;
21
}
22
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
201
1
2
if (nf_profile->udr_info_list) {
3
OpenAPI_list_for_each(nf_profile->udr_info_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed udr_info_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed udr_info_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_udr_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (nf_profile->udm_info_list) {
18
OpenAPI_list_for_each(nf_profile->udm_info_list, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed udm_info_list");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed udm_info_list");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_udm_info_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
32
if (nf_profile->ausf_info_list) {
33
OpenAPI_list_for_each(nf_profile->ausf_info_list, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed ausf_info_list");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed ausf_info_list");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_ausf_info_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
47
if (nf_profile->amf_info_list) {
48
OpenAPI_list_for_each(nf_profile->amf_info_list, node) {
49
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
50
+ if (localKeyValue == NULL) {
51
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed amf_info_list");
52
+ goto end;
53
+ }
54
+ if (localKeyValue->key == NULL) {
55
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed amf_info_list");
56
+ goto end;
57
+ }
58
cJSON *itemLocal = localKeyValue->value ?
59
OpenAPI_amf_info_convertToJSON(localKeyValue->value) :
60
cJSON_CreateNull();
61
62
if (nf_profile->smf_info_list) {
63
OpenAPI_list_for_each(nf_profile->smf_info_list, node) {
64
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
65
+ if (localKeyValue == NULL) {
66
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed smf_info_list");
67
+ goto end;
68
+ }
69
+ if (localKeyValue->key == NULL) {
70
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed smf_info_list");
71
+ goto end;
72
+ }
73
cJSON *itemLocal = localKeyValue->value ?
74
OpenAPI_smf_info_convertToJSON(localKeyValue->value) :
75
cJSON_CreateNull();
76
77
if (nf_profile->upf_info_list) {
78
OpenAPI_list_for_each(nf_profile->upf_info_list, node) {
79
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
80
+ if (localKeyValue == NULL) {
81
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed upf_info_list");
82
+ goto end;
83
+ }
84
+ if (localKeyValue->key == NULL) {
85
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed upf_info_list");
86
+ goto end;
87
+ }
88
cJSON *itemLocal = localKeyValue->value ?
89
OpenAPI_upf_info_convertToJSON(localKeyValue->value) :
90
cJSON_CreateNull();
91
92
if (nf_profile->pcf_info_list) {
93
OpenAPI_list_for_each(nf_profile->pcf_info_list, node) {
94
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
95
+ if (localKeyValue == NULL) {
96
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed pcf_info_list");
97
+ goto end;
98
+ }
99
+ if (localKeyValue->key == NULL) {
100
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed pcf_info_list");
101
+ goto end;
102
+ }
103
cJSON *itemLocal = localKeyValue->value ?
104
OpenAPI_pcf_info_convertToJSON(localKeyValue->value) :
105
cJSON_CreateNull();
106
107
if (nf_profile->bsf_info_list) {
108
OpenAPI_list_for_each(nf_profile->bsf_info_list, node) {
109
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
110
+ if (localKeyValue == NULL) {
111
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed bsf_info_list");
112
+ goto end;
113
+ }
114
+ if (localKeyValue->key == NULL) {
115
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed bsf_info_list");
116
+ goto end;
117
+ }
118
cJSON *itemLocal = localKeyValue->value ?
119
OpenAPI_bsf_info_convertToJSON(localKeyValue->value) :
120
cJSON_CreateNull();
121
122
if (nf_profile->chf_info_list) {
123
OpenAPI_list_for_each(nf_profile->chf_info_list, node) {
124
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
125
+ if (localKeyValue == NULL) {
126
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed chf_info_list");
127
+ goto end;
128
+ }
129
+ if (localKeyValue->key == NULL) {
130
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed chf_info_list");
131
+ goto end;
132
+ }
133
cJSON *itemLocal = localKeyValue->value ?
134
OpenAPI_chf_info_convertToJSON(localKeyValue->value) :
135
cJSON_CreateNull();
136
137
if (nf_profile->udsf_info_list) {
138
OpenAPI_list_for_each(nf_profile->udsf_info_list, node) {
139
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
140
+ if (localKeyValue == NULL) {
141
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed udsf_info_list");
142
+ goto end;
143
+ }
144
+ if (localKeyValue->key == NULL) {
145
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed udsf_info_list");
146
+ goto end;
147
+ }
148
cJSON *itemLocal = localKeyValue->value ?
149
OpenAPI_udsf_info_convertToJSON(localKeyValue->value) :
150
cJSON_CreateNull();
151
152
if (nf_profile->nwdaf_info_list) {
153
OpenAPI_list_for_each(nf_profile->nwdaf_info_list, node) {
154
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
155
+ if (localKeyValue == NULL) {
156
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed nwdaf_info_list");
157
+ goto end;
158
+ }
159
+ if (localKeyValue->key == NULL) {
160
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed nwdaf_info_list");
161
+ goto end;
162
+ }
163
cJSON *itemLocal = localKeyValue->value ?
164
OpenAPI_nwdaf_info_convertToJSON(localKeyValue->value) :
165
cJSON_CreateNull();
166
167
if (nf_profile->pcscf_info_list) {
168
OpenAPI_list_for_each(nf_profile->pcscf_info_list, node) {
169
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
170
+ if (localKeyValue == NULL) {
171
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed pcscf_info_list");
172
+ goto end;
173
+ }
174
+ if (localKeyValue->key == NULL) {
175
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed pcscf_info_list");
176
+ goto end;
177
+ }
178
cJSON *itemLocal = localKeyValue->value ?
179
OpenAPI_pcscf_info_convertToJSON(localKeyValue->value) :
180
cJSON_CreateNull();
181
182
if (nf_profile->hss_info_list) {
183
OpenAPI_list_for_each(nf_profile->hss_info_list, node) {
184
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
185
+ if (localKeyValue == NULL) {
186
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed hss_info_list");
187
+ goto end;
188
+ }
189
+ if (localKeyValue->key == NULL) {
190
+ ogs_error("OpenAPI_nf_profile_convertToJSON() failed hss_info_list");
191
+ goto end;
192
+ }
193
cJSON *itemLocal = localKeyValue->value ?
194
OpenAPI_hss_info_convertToJSON(localKeyValue->value) :
195
cJSON_CreateNull();
196
197
if (nf_profile->nf_service_list) {
198
OpenAPI_list_for_each(nf_profile->nf_service_list, node) {
199
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
200
+ if (localKeyValue == NULL) {
201
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
46
1
2
if (nf_service->allowed_operations_per_nf_type) {
3
OpenAPI_list_for_each(nf_service->allowed_operations_per_nf_type, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_nf_service_convertToJSON() failed allowed_operations_per_nf_type");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_nf_service_convertToJSON() failed allowed_operations_per_nf_type");
11
+ goto end;
12
+ }
13
}
14
}
15
}
16
17
if (nf_service->allowed_operations_per_nf_instance) {
18
OpenAPI_list_for_each(nf_service->allowed_operations_per_nf_instance, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_nf_service_convertToJSON() failed allowed_operations_per_nf_instance");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_nf_service_convertToJSON() failed allowed_operations_per_nf_instance");
26
+ goto end;
27
+ }
28
}
29
}
30
}
31
32
if (nf_service->supported_vendor_specific_features) {
33
OpenAPI_list_for_each(nf_service->supported_vendor_specific_features, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_nf_service_convertToJSON() failed supported_vendor_specific_features");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_nf_service_convertToJSON() failed supported_vendor_specific_features");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_vendor_specific_feature_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
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
201
1
2
if (nrf_info->served_udr_info) {
3
OpenAPI_list_for_each(nrf_info->served_udr_info, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udr_info");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udr_info");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_nrf_info_served_udr_info_value_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (nrf_info->served_udr_info_list) {
18
OpenAPI_list_for_each(nrf_info->served_udr_info_list, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udr_info_list");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udr_info_list");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_nrf_info_served_udr_info_value_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
32
if (nrf_info->served_udm_info) {
33
OpenAPI_list_for_each(nrf_info->served_udm_info, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udm_info");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udm_info");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_nrf_info_served_udm_info_value_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
47
if (nrf_info->served_udm_info_list) {
48
OpenAPI_list_for_each(nrf_info->served_udm_info_list, node) {
49
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
50
+ if (localKeyValue == NULL) {
51
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udm_info_list");
52
+ goto end;
53
+ }
54
+ if (localKeyValue->key == NULL) {
55
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_udm_info_list");
56
+ goto end;
57
+ }
58
cJSON *itemLocal = localKeyValue->value ?
59
OpenAPI_nrf_info_served_udm_info_value_convertToJSON(localKeyValue->value) :
60
cJSON_CreateNull();
61
62
if (nrf_info->served_ausf_info) {
63
OpenAPI_list_for_each(nrf_info->served_ausf_info, node) {
64
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
65
+ if (localKeyValue == NULL) {
66
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_ausf_info");
67
+ goto end;
68
+ }
69
+ if (localKeyValue->key == NULL) {
70
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_ausf_info");
71
+ goto end;
72
+ }
73
cJSON *itemLocal = localKeyValue->value ?
74
OpenAPI_nrf_info_served_ausf_info_value_convertToJSON(localKeyValue->value) :
75
cJSON_CreateNull();
76
77
if (nrf_info->served_ausf_info_list) {
78
OpenAPI_list_for_each(nrf_info->served_ausf_info_list, node) {
79
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
80
+ if (localKeyValue == NULL) {
81
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_ausf_info_list");
82
+ goto end;
83
+ }
84
+ if (localKeyValue->key == NULL) {
85
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_ausf_info_list");
86
+ goto end;
87
+ }
88
cJSON *itemLocal = localKeyValue->value ?
89
OpenAPI_nrf_info_served_ausf_info_value_convertToJSON(localKeyValue->value) :
90
cJSON_CreateNull();
91
92
if (nrf_info->served_amf_info) {
93
OpenAPI_list_for_each(nrf_info->served_amf_info, node) {
94
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
95
+ if (localKeyValue == NULL) {
96
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_amf_info");
97
+ goto end;
98
+ }
99
+ if (localKeyValue->key == NULL) {
100
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_amf_info");
101
+ goto end;
102
+ }
103
cJSON *itemLocal = localKeyValue->value ?
104
OpenAPI_nrf_info_served_amf_info_value_convertToJSON(localKeyValue->value) :
105
cJSON_CreateNull();
106
107
if (nrf_info->served_amf_info_list) {
108
OpenAPI_list_for_each(nrf_info->served_amf_info_list, node) {
109
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
110
+ if (localKeyValue == NULL) {
111
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_amf_info_list");
112
+ goto end;
113
+ }
114
+ if (localKeyValue->key == NULL) {
115
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_amf_info_list");
116
+ goto end;
117
+ }
118
cJSON *itemLocal = localKeyValue->value ?
119
OpenAPI_nrf_info_served_amf_info_value_convertToJSON(localKeyValue->value) :
120
cJSON_CreateNull();
121
122
if (nrf_info->served_smf_info) {
123
OpenAPI_list_for_each(nrf_info->served_smf_info, node) {
124
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
125
+ if (localKeyValue == NULL) {
126
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_smf_info");
127
+ goto end;
128
+ }
129
+ if (localKeyValue->key == NULL) {
130
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_smf_info");
131
+ goto end;
132
+ }
133
cJSON *itemLocal = localKeyValue->value ?
134
OpenAPI_nrf_info_served_smf_info_value_convertToJSON(localKeyValue->value) :
135
cJSON_CreateNull();
136
137
if (nrf_info->served_smf_info_list) {
138
OpenAPI_list_for_each(nrf_info->served_smf_info_list, node) {
139
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
140
+ if (localKeyValue == NULL) {
141
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_smf_info_list");
142
+ goto end;
143
+ }
144
+ if (localKeyValue->key == NULL) {
145
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_smf_info_list");
146
+ goto end;
147
+ }
148
cJSON *itemLocal = localKeyValue->value ?
149
OpenAPI_nrf_info_served_smf_info_value_convertToJSON(localKeyValue->value) :
150
cJSON_CreateNull();
151
152
if (nrf_info->served_upf_info) {
153
OpenAPI_list_for_each(nrf_info->served_upf_info, node) {
154
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
155
+ if (localKeyValue == NULL) {
156
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_upf_info");
157
+ goto end;
158
+ }
159
+ if (localKeyValue->key == NULL) {
160
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_upf_info");
161
+ goto end;
162
+ }
163
cJSON *itemLocal = localKeyValue->value ?
164
OpenAPI_nrf_info_served_upf_info_value_convertToJSON(localKeyValue->value) :
165
cJSON_CreateNull();
166
167
if (nrf_info->served_upf_info_list) {
168
OpenAPI_list_for_each(nrf_info->served_upf_info_list, node) {
169
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
170
+ if (localKeyValue == NULL) {
171
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_upf_info_list");
172
+ goto end;
173
+ }
174
+ if (localKeyValue->key == NULL) {
175
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_upf_info_list");
176
+ goto end;
177
+ }
178
cJSON *itemLocal = localKeyValue->value ?
179
OpenAPI_nrf_info_served_upf_info_value_convertToJSON(localKeyValue->value) :
180
cJSON_CreateNull();
181
182
if (nrf_info->served_pcf_info) {
183
OpenAPI_list_for_each(nrf_info->served_pcf_info, node) {
184
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
185
+ if (localKeyValue == NULL) {
186
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_pcf_info");
187
+ goto end;
188
+ }
189
+ if (localKeyValue->key == NULL) {
190
+ ogs_error("OpenAPI_nrf_info_convertToJSON() failed served_pcf_info");
191
+ goto end;
192
+ }
193
cJSON *itemLocal = localKeyValue->value ?
194
OpenAPI_nrf_info_served_pcf_info_value_convertToJSON(localKeyValue->value) :
195
cJSON_CreateNull();
196
197
if (nrf_info->served_pcf_info_list) {
198
OpenAPI_list_for_each(nrf_info->served_pcf_info_list, node) {
199
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
200
+ if (localKeyValue == NULL) {
201
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
46
1
2
if (nrf_info_served_mb_smf_info_list_value_value->s_nssai_info_list) {
3
OpenAPI_list_for_each(nrf_info_served_mb_smf_info_list_value_value->s_nssai_info_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed s_nssai_info_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed s_nssai_info_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_snssai_mb_smf_info_item_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (nrf_info_served_mb_smf_info_list_value_value->tmgi_range_list) {
18
OpenAPI_list_for_each(nrf_info_served_mb_smf_info_list_value_value->tmgi_range_list, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed tmgi_range_list");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed tmgi_range_list");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_tmgi_range_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
32
if (nrf_info_served_mb_smf_info_list_value_value->mbs_session_list) {
33
OpenAPI_list_for_each(nrf_info_served_mb_smf_info_list_value_value->mbs_session_list, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed mbs_session_list");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_nrf_info_served_mb_smf_info_list_value_value_convertToJSON() failed mbs_session_list");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_mbs_session_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
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
37
1
2
if (nrf_info_served_scp_info_list_value->scp_domain_info_list) {
3
OpenAPI_list_for_each(nrf_info_served_scp_info_list_value->scp_domain_info_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed scp_domain_info_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed scp_domain_info_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_scp_domain_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (nrf_info_served_scp_info_list_value->scp_ports) {
18
OpenAPI_list_for_each(nrf_info_served_scp_info_list_value->scp_ports, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
- if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
21
+ if (localKeyValue == NULL) {
22
+ ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed scp_ports");
23
+ goto end;
24
+ }
25
+ if (localKeyValue->key == NULL) {
26
+ ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed scp_ports");
27
+ goto end;
28
+ }
29
+ if (localKeyValue->value == NULL) {
30
+ ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed inner");
31
+ goto end;
32
+ }
33
+ if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) {
34
ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_convertToJSON() failed inner");
35
goto end;
36
}
37
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
22
1
2
if (nrf_info_served_sepp_info_list_value->sepp_ports) {
3
OpenAPI_list_for_each(nrf_info_served_sepp_info_list_value->sepp_ports, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
- if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
6
+ if (localKeyValue == NULL) {
7
+ ogs_error("OpenAPI_nrf_info_served_sepp_info_list_value_convertToJSON() failed sepp_ports");
8
+ goto end;
9
+ }
10
+ if (localKeyValue->key == NULL) {
11
+ ogs_error("OpenAPI_nrf_info_served_sepp_info_list_value_convertToJSON() failed sepp_ports");
12
+ goto end;
13
+ }
14
+ if (localKeyValue->value == NULL) {
15
+ ogs_error("OpenAPI_nrf_info_served_sepp_info_list_value_convertToJSON() failed inner");
16
+ goto end;
17
+ }
18
+ if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) {
19
ogs_error("OpenAPI_nrf_info_served_sepp_info_list_value_convertToJSON() failed inner");
20
goto end;
21
}
22
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
16
1
2
if (nrf_info_served_udsf_info_value->storage_id_ranges) {
3
OpenAPI_list_for_each(nrf_info_served_udsf_info_value->storage_id_ranges, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_nrf_info_served_udsf_info_value_convertToJSON() failed storage_id_ranges");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_nrf_info_served_udsf_info_value_convertToJSON() failed storage_id_ranges");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_identity_range_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(nsag_info->nsag_ids, node) {
5
- if (cJSON_AddNumberToObject(nsag_idsList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_nsag_info_convertToJSON() failed nsag_ids");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(nsag_idsList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_nsag_info_convertToJSON() failed nsag_ids");
12
goto end;
13
}
14
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
16
1
2
if (nsi_information->nrf_oauth2_required) {
3
OpenAPI_list_for_each(nsi_information->nrf_oauth2_required, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_nsi_information_convertToJSON() failed nrf_oauth2_required");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_nsi_information_convertToJSON() failed nrf_oauth2_required");
11
+ goto end;
12
+ }
13
if (cJSON_AddBoolToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
14
ogs_error("OpenAPI_nsi_information_convertToJSON() failed inner");
15
goto end;
16
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
16
1
2
if (nssai->additional_snssai_data) {
3
OpenAPI_list_for_each(nssai->additional_snssai_data, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_nssai_convertToJSON() failed additional_snssai_data");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_nssai_convertToJSON() failed additional_snssai_data");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_additional_snssai_data_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (nssai_1->additional_snssai_data) {
3
OpenAPI_list_for_each(nssai_1->additional_snssai_data, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_nssai_1_convertToJSON() failed additional_snssai_data");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_nssai_1_convertToJSON() failed additional_snssai_data");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_additional_snssai_data_1_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(pdu_session_create_data->eps_bearer_id, node) {
5
- if (cJSON_AddNumberToObject(eps_bearer_idList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed eps_bearer_id");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(eps_bearer_idList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed eps_bearer_id");
12
goto end;
13
}
14
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
16
1
2
if (policy_association->pras) {
3
OpenAPI_list_for_each(policy_association->pras, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_policy_association_convertToJSON() failed pras");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_policy_association_convertToJSON() failed pras");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (policy_association_update_request->pra_statuses) {
3
OpenAPI_list_for_each(policy_association_update_request->pra_statuses, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_policy_association_update_request_convertToJSON() failed pra_statuses");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_policy_association_update_request_convertToJSON() failed pra_statuses");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (policy_data_change_notification->op_spec_data_map) {
3
OpenAPI_list_for_each(policy_data_change_notification->op_spec_data_map, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_policy_data_change_notification_convertToJSON() failed op_spec_data_map");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_policy_data_change_notification_convertToJSON() failed op_spec_data_map");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_operator_specific_data_container_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
31
1
2
if (policy_data_for_individual_ue->um_data) {
3
OpenAPI_list_for_each(policy_data_for_individual_ue->um_data, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_policy_data_for_individual_ue_convertToJSON() failed um_data");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_policy_data_for_individual_ue_convertToJSON() failed um_data");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_usage_mon_data_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (policy_data_for_individual_ue->operator_specific_data_set) {
18
OpenAPI_list_for_each(policy_data_for_individual_ue->operator_specific_data_set, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_policy_data_for_individual_ue_convertToJSON() failed operator_specific_data_set");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_policy_data_for_individual_ue_convertToJSON() failed operator_specific_data_set");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_operator_specific_data_container_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
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
16
1
2
if (policy_update->pras) {
3
OpenAPI_list_for_each(policy_update->pras, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_policy_update_convertToJSON() failed pras");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_policy_update_convertToJSON() failed pras");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_presence_info_rm_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (pp5g_vn_group_profile_data->allowed_mtc_providers) {
3
OpenAPI_list_for_each(pp5g_vn_group_profile_data->allowed_mtc_providers, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_pp5g_vn_group_profile_data_convertToJSON() failed allowed_mtc_providers");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_pp5g_vn_group_profile_data_convertToJSON() failed allowed_mtc_providers");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_allowed_mtc_provider_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (pp_profile_data->allowed_mtc_providers) {
3
OpenAPI_list_for_each(pp_profile_data->allowed_mtc_providers, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_pp_profile_data_convertToJSON() failed allowed_mtc_providers");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_pp_profile_data_convertToJSON() failed allowed_mtc_providers");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_allowed_mtc_provider_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (pro_se_authentication_ctx->_links) {
3
OpenAPI_list_for_each(pro_se_authentication_ctx->_links, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_pro_se_authentication_ctx_convertToJSON() failed _links");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_pro_se_authentication_ctx_convertToJSON() failed _links");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (pro_se_eap_session->_links) {
3
OpenAPI_list_for_each(pro_se_eap_session->_links, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_pro_se_eap_session_convertToJSON() failed _links");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_pro_se_eap_session_convertToJSON() failed _links");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(qos_flow_tunnel->qfi_list, node) {
5
- if (cJSON_AddNumberToObject(qfi_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_qos_flow_tunnel_convertToJSON() failed qfi_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(qfi_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_qos_flow_tunnel_convertToJSON() failed qfi_list");
12
goto end;
13
}
14
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
40
1
2
goto end;
3
}
4
OpenAPI_list_for_each(qos_monitoring_report->ul_delays, node) {
5
- if (cJSON_AddNumberToObject(ul_delaysList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed ul_delays");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(ul_delaysList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed ul_delays");
12
goto end;
13
}
14
15
goto end;
16
}
17
OpenAPI_list_for_each(qos_monitoring_report->dl_delays, node) {
18
- if (cJSON_AddNumberToObject(dl_delaysList, "", (uintptr_t)node->data) == NULL) {
19
+ if (node->data == NULL) {
20
+ ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed dl_delays");
21
+ goto end;
22
+ }
23
+ if (cJSON_AddNumberToObject(dl_delaysList, "", *(double *)node->data) == NULL) {
24
ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed dl_delays");
25
goto end;
26
}
27
28
goto end;
29
}
30
OpenAPI_list_for_each(qos_monitoring_report->rt_delays, node) {
31
- if (cJSON_AddNumberToObject(rt_delaysList, "", (uintptr_t)node->data) == NULL) {
32
+ if (node->data == NULL) {
33
+ ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed rt_delays");
34
+ goto end;
35
+ }
36
+ if (cJSON_AddNumberToObject(rt_delaysList, "", *(double *)node->data) == NULL) {
37
ogs_error("OpenAPI_qos_monitoring_report_convertToJSON() failed rt_delays");
38
goto end;
39
}
40
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(release_session_info->release_session_list, node) {
5
- if (cJSON_AddNumberToObject(release_session_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_release_session_info_convertToJSON() failed release_session_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(release_session_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_release_session_info_convertToJSON() failed release_session_list");
12
goto end;
13
}
14
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(rule_report->cont_vers, node) {
5
- if (cJSON_AddNumberToObject(cont_versList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_rule_report_convertToJSON() failed cont_vers");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(cont_versList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_rule_report_convertToJSON() failed cont_vers");
12
goto end;
13
}
14
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(scheduled_communication_time->days_of_week, node) {
5
- if (cJSON_AddNumberToObject(days_of_weekList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_scheduled_communication_time_convertToJSON() failed days_of_week");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(days_of_weekList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_scheduled_communication_time_convertToJSON() failed days_of_week");
12
goto end;
13
}
14
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(scheduled_communication_time_1->days_of_week, node) {
5
- if (cJSON_AddNumberToObject(days_of_weekList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_scheduled_communication_time_1_convertToJSON() failed days_of_week");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(days_of_weekList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_scheduled_communication_time_1_convertToJSON() failed days_of_week");
12
goto end;
13
}
14
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(scheduled_communication_time_rm->days_of_week, node) {
5
- if (cJSON_AddNumberToObject(days_of_weekList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_scheduled_communication_time_rm_convertToJSON() failed days_of_week");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(days_of_weekList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_scheduled_communication_time_rm_convertToJSON() failed days_of_week");
12
goto end;
13
}
14
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
22
1
2
if (scp_domain_info->scp_ports) {
3
OpenAPI_list_for_each(scp_domain_info->scp_ports, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
- if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
6
+ if (localKeyValue == NULL) {
7
+ ogs_error("OpenAPI_scp_domain_info_convertToJSON() failed scp_ports");
8
+ goto end;
9
+ }
10
+ if (localKeyValue->key == NULL) {
11
+ ogs_error("OpenAPI_scp_domain_info_convertToJSON() failed scp_ports");
12
+ goto end;
13
+ }
14
+ if (localKeyValue->value == NULL) {
15
+ ogs_error("OpenAPI_scp_domain_info_convertToJSON() failed inner");
16
+ goto end;
17
+ }
18
+ if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) {
19
ogs_error("OpenAPI_scp_domain_info_convertToJSON() failed inner");
20
goto end;
21
}
22
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
16
1
2
if (scp_domain_routing_information->scp_domain_list) {
3
OpenAPI_list_for_each(scp_domain_routing_information->scp_domain_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_scp_domain_routing_information_convertToJSON() failed scp_domain_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_scp_domain_routing_information_convertToJSON() failed scp_domain_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_scp_domain_connectivity_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
37
1
2
if (scp_info->scp_domain_info_list) {
3
OpenAPI_list_for_each(scp_info->scp_domain_info_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_scp_info_convertToJSON() failed scp_domain_info_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_scp_info_convertToJSON() failed scp_domain_info_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_scp_domain_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (scp_info->scp_ports) {
18
OpenAPI_list_for_each(scp_info->scp_ports, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
- if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
21
+ if (localKeyValue == NULL) {
22
+ ogs_error("OpenAPI_scp_info_convertToJSON() failed scp_ports");
23
+ goto end;
24
+ }
25
+ if (localKeyValue->key == NULL) {
26
+ ogs_error("OpenAPI_scp_info_convertToJSON() failed scp_ports");
27
+ goto end;
28
+ }
29
+ if (localKeyValue->value == NULL) {
30
+ ogs_error("OpenAPI_scp_info_convertToJSON() failed inner");
31
+ goto end;
32
+ }
33
+ if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) {
34
ogs_error("OpenAPI_scp_info_convertToJSON() failed inner");
35
goto end;
36
}
37
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
16
1
2
if (search_result->nf_instance_list) {
3
OpenAPI_list_for_each(search_result->nf_instance_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_search_result_convertToJSON() failed nf_instance_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_search_result_convertToJSON() failed nf_instance_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_nf_instance_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
22
1
2
if (sepp_info->sepp_ports) {
3
OpenAPI_list_for_each(sepp_info->sepp_ports, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
- if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
6
+ if (localKeyValue == NULL) {
7
+ ogs_error("OpenAPI_sepp_info_convertToJSON() failed sepp_ports");
8
+ goto end;
9
+ }
10
+ if (localKeyValue->key == NULL) {
11
+ ogs_error("OpenAPI_sepp_info_convertToJSON() failed sepp_ports");
12
+ goto end;
13
+ }
14
+ if (localKeyValue->value == NULL) {
15
+ ogs_error("OpenAPI_sepp_info_convertToJSON() failed inner");
16
+ goto end;
17
+ }
18
+ if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) {
19
ogs_error("OpenAPI_sepp_info_convertToJSON() failed inner");
20
goto end;
21
}
22
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
22
1
2
if (sequence_number->last_indexes) {
3
OpenAPI_list_for_each(sequence_number->last_indexes, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
- if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
6
+ if (localKeyValue == NULL) {
7
+ ogs_error("OpenAPI_sequence_number_convertToJSON() failed last_indexes");
8
+ goto end;
9
+ }
10
+ if (localKeyValue->key == NULL) {
11
+ ogs_error("OpenAPI_sequence_number_convertToJSON() failed last_indexes");
12
+ goto end;
13
+ }
14
+ if (localKeyValue->value == NULL) {
15
+ ogs_error("OpenAPI_sequence_number_convertToJSON() failed inner");
16
+ goto end;
17
+ }
18
+ if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) {
19
ogs_error("OpenAPI_sequence_number_convertToJSON() failed inner");
20
goto end;
21
}
22
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
61
1
2
if (session_management_subscription_data->dnn_configurations) {
3
OpenAPI_list_for_each(session_management_subscription_data->dnn_configurations, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed dnn_configurations");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed dnn_configurations");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_dnn_configuration_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (session_management_subscription_data->shared_vn_group_data_ids) {
18
OpenAPI_list_for_each(session_management_subscription_data->shared_vn_group_data_ids, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed shared_vn_group_data_ids");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed shared_vn_group_data_ids");
26
+ goto end;
27
+ }
28
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) {
29
ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed inner");
30
goto end;
31
32
if (session_management_subscription_data->expected_ue_behaviours_list) {
33
OpenAPI_list_for_each(session_management_subscription_data->expected_ue_behaviours_list, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed expected_ue_behaviours_list");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed expected_ue_behaviours_list");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_expected_ue_behaviour_data_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
47
if (session_management_subscription_data->suggested_packet_num_dl_list) {
48
OpenAPI_list_for_each(session_management_subscription_data->suggested_packet_num_dl_list, node) {
49
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
50
+ if (localKeyValue == NULL) {
51
+ ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed suggested_packet_num_dl_list");
52
+ goto end;
53
+ }
54
+ if (localKeyValue->key == NULL) {
55
+ ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed suggested_packet_num_dl_list");
56
+ goto end;
57
+ }
58
cJSON *itemLocal = localKeyValue->value ?
59
OpenAPI_suggested_packet_num_dl_convertToJSON(localKeyValue->value) :
60
cJSON_CreateNull();
61
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
61
1
2
if (session_management_subscription_data_1->dnn_configurations) {
3
OpenAPI_list_for_each(session_management_subscription_data_1->dnn_configurations, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed dnn_configurations");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed dnn_configurations");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_dnn_configuration_1_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (session_management_subscription_data_1->shared_vn_group_data_ids) {
18
OpenAPI_list_for_each(session_management_subscription_data_1->shared_vn_group_data_ids, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed shared_vn_group_data_ids");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed shared_vn_group_data_ids");
26
+ goto end;
27
+ }
28
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) {
29
ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed inner");
30
goto end;
31
32
if (session_management_subscription_data_1->expected_ue_behaviours_list) {
33
OpenAPI_list_for_each(session_management_subscription_data_1->expected_ue_behaviours_list, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed expected_ue_behaviours_list");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed expected_ue_behaviours_list");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_expected_ue_behaviour_data_1_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
47
if (session_management_subscription_data_1->suggested_packet_num_dl_list) {
48
OpenAPI_list_for_each(session_management_subscription_data_1->suggested_packet_num_dl_list, node) {
49
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
50
+ if (localKeyValue == NULL) {
51
+ ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed suggested_packet_num_dl_list");
52
+ goto end;
53
+ }
54
+ if (localKeyValue->key == NULL) {
55
+ ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed suggested_packet_num_dl_list");
56
+ goto end;
57
+ }
58
cJSON *itemLocal = localKeyValue->value ?
59
OpenAPI_suggested_packet_num_dl_1_convertToJSON(localKeyValue->value) :
60
cJSON_CreateNull();
61
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
61
1
2
if (shared_data->shared_dnn_configurations) {
3
OpenAPI_list_for_each(shared_data->shared_dnn_configurations, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_dnn_configurations");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_dnn_configurations");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_dnn_configuration_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (shared_data->shared_snssai_infos) {
18
OpenAPI_list_for_each(shared_data->shared_snssai_infos, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_snssai_infos");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_snssai_infos");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_snssai_info_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
32
if (shared_data->shared_vn_group_datas) {
33
OpenAPI_list_for_each(shared_data->shared_vn_group_datas, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_vn_group_datas");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_vn_group_datas");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_vn_group_data_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
47
if (shared_data->treatment_instructions) {
48
OpenAPI_list_for_each(shared_data->treatment_instructions, node) {
49
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
50
+ if (localKeyValue == NULL) {
51
+ ogs_error("OpenAPI_shared_data_convertToJSON() failed treatment_instructions");
52
+ goto end;
53
+ }
54
+ if (localKeyValue->key == NULL) {
55
+ ogs_error("OpenAPI_shared_data_convertToJSON() failed treatment_instructions");
56
+ goto end;
57
+ }
58
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, OpenAPI_shared_data_treatment_instruction_ToString((intptr_t)localKeyValue->value)) == NULL) {
59
ogs_error("OpenAPI_shared_data_convertToJSON() failed treatment_instructions");
60
goto end;
61
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
29
1
2
goto end;
3
}
4
OpenAPI_list_for_each(sm_context_create_data->pdu_sessions_activate_list, node) {
5
- if (cJSON_AddNumberToObject(pdu_sessions_activate_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed pdu_sessions_activate_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(pdu_sessions_activate_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed pdu_sessions_activate_list");
12
goto end;
13
}
14
15
if (sm_context_create_data->nrf_oauth2_required) {
16
OpenAPI_list_for_each(sm_context_create_data->nrf_oauth2_required, node) {
17
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
18
+ if (localKeyValue == NULL) {
19
+ ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed nrf_oauth2_required");
20
+ goto end;
21
+ }
22
+ if (localKeyValue->key == NULL) {
23
+ ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed nrf_oauth2_required");
24
+ goto end;
25
+ }
26
if (cJSON_AddBoolToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
27
ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed inner");
28
goto end;
29
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(sm_context_retrieve_data->not_to_transfer_ebi_list, node) {
5
- if (cJSON_AddNumberToObject(not_to_transfer_ebi_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_sm_context_retrieve_data_convertToJSON() failed not_to_transfer_ebi_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(not_to_transfer_ebi_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_sm_context_retrieve_data_convertToJSON() failed not_to_transfer_ebi_list");
12
goto end;
13
}
14
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(sm_context_update_data->revoke_ebi_list, node) {
5
- if (cJSON_AddNumberToObject(revoke_ebi_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed revoke_ebi_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(revoke_ebi_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed revoke_ebi_list");
12
goto end;
13
}
14
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(sm_context_updated_data->release_ebi_list, node) {
5
- if (cJSON_AddNumberToObject(release_ebi_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed release_ebi_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(release_ebi_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed release_ebi_list");
12
goto end;
13
}
14
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
46
1
2
if (sm_policy_data->sm_policy_snssai_data) {
3
OpenAPI_list_for_each(sm_policy_data->sm_policy_snssai_data, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed sm_policy_snssai_data");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed sm_policy_snssai_data");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_sm_policy_snssai_data_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (sm_policy_data->um_data_limits) {
18
OpenAPI_list_for_each(sm_policy_data->um_data_limits, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed um_data_limits");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed um_data_limits");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_usage_mon_data_limit_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
32
if (sm_policy_data->um_data) {
33
OpenAPI_list_for_each(sm_policy_data->um_data, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed um_data");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_sm_policy_data_convertToJSON() failed um_data");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_usage_mon_data_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
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
31
1
2
if (sm_policy_data_patch->um_data) {
3
OpenAPI_list_for_each(sm_policy_data_patch->um_data, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_sm_policy_data_patch_convertToJSON() failed um_data");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_sm_policy_data_patch_convertToJSON() failed um_data");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_usage_mon_data_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (sm_policy_data_patch->sm_policy_snssai_data) {
18
OpenAPI_list_for_each(sm_policy_data_patch->sm_policy_snssai_data, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_sm_policy_data_patch_convertToJSON() failed sm_policy_snssai_data");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_sm_policy_data_patch_convertToJSON() failed sm_policy_snssai_data");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_sm_policy_snssai_data_patch_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
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
151
1
2
if (sm_policy_decision->sess_rules) {
3
OpenAPI_list_for_each(sm_policy_decision->sess_rules, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed sess_rules");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed sess_rules");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_session_rule_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (sm_policy_decision->pcc_rules) {
18
OpenAPI_list_for_each(sm_policy_decision->pcc_rules, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed pcc_rules");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed pcc_rules");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_pcc_rule_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
32
if (sm_policy_decision->qos_decs) {
33
OpenAPI_list_for_each(sm_policy_decision->qos_decs, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_decs");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_decs");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_qos_data_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
47
if (sm_policy_decision->chg_decs) {
48
OpenAPI_list_for_each(sm_policy_decision->chg_decs, node) {
49
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
50
+ if (localKeyValue == NULL) {
51
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed chg_decs");
52
+ goto end;
53
+ }
54
+ if (localKeyValue->key == NULL) {
55
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed chg_decs");
56
+ goto end;
57
+ }
58
cJSON *itemLocal = localKeyValue->value ?
59
OpenAPI_charging_data_convertToJSON(localKeyValue->value) :
60
cJSON_CreateNull();
61
62
if (sm_policy_decision->traff_cont_decs) {
63
OpenAPI_list_for_each(sm_policy_decision->traff_cont_decs, node) {
64
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
65
+ if (localKeyValue == NULL) {
66
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed traff_cont_decs");
67
+ goto end;
68
+ }
69
+ if (localKeyValue->key == NULL) {
70
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed traff_cont_decs");
71
+ goto end;
72
+ }
73
cJSON *itemLocal = localKeyValue->value ?
74
OpenAPI_traffic_control_data_convertToJSON(localKeyValue->value) :
75
cJSON_CreateNull();
76
77
if (sm_policy_decision->um_decs) {
78
OpenAPI_list_for_each(sm_policy_decision->um_decs, node) {
79
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
80
+ if (localKeyValue == NULL) {
81
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed um_decs");
82
+ goto end;
83
+ }
84
+ if (localKeyValue->key == NULL) {
85
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed um_decs");
86
+ goto end;
87
+ }
88
cJSON *itemLocal = localKeyValue->value ?
89
OpenAPI_usage_monitoring_data_convertToJSON(localKeyValue->value) :
90
cJSON_CreateNull();
91
92
if (sm_policy_decision->qos_chars) {
93
OpenAPI_list_for_each(sm_policy_decision->qos_chars, node) {
94
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
95
+ if (localKeyValue == NULL) {
96
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_chars");
97
+ goto end;
98
+ }
99
+ if (localKeyValue->key == NULL) {
100
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_chars");
101
+ goto end;
102
+ }
103
cJSON *itemLocal = localKeyValue->value ?
104
OpenAPI_qos_characteristics_convertToJSON(localKeyValue->value) :
105
cJSON_CreateNull();
106
107
if (sm_policy_decision->qos_mon_decs) {
108
OpenAPI_list_for_each(sm_policy_decision->qos_mon_decs, node) {
109
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
110
+ if (localKeyValue == NULL) {
111
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_mon_decs");
112
+ goto end;
113
+ }
114
+ if (localKeyValue->key == NULL) {
115
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_mon_decs");
116
+ goto end;
117
+ }
118
cJSON *itemLocal = localKeyValue->value ?
119
OpenAPI_qos_monitoring_data_convertToJSON(localKeyValue->value) :
120
cJSON_CreateNull();
121
122
if (sm_policy_decision->conds) {
123
OpenAPI_list_for_each(sm_policy_decision->conds, node) {
124
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
125
+ if (localKeyValue == NULL) {
126
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed conds");
127
+ goto end;
128
+ }
129
+ if (localKeyValue->key == NULL) {
130
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed conds");
131
+ goto end;
132
+ }
133
cJSON *itemLocal = localKeyValue->value ?
134
OpenAPI_condition_data_convertToJSON(localKeyValue->value) :
135
cJSON_CreateNull();
136
137
if (sm_policy_decision->pra_infos) {
138
OpenAPI_list_for_each(sm_policy_decision->pra_infos, node) {
139
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
140
+ if (localKeyValue == NULL) {
141
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed pra_infos");
142
+ goto end;
143
+ }
144
+ if (localKeyValue->key == NULL) {
145
+ ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed pra_infos");
146
+ goto end;
147
+ }
148
cJSON *itemLocal = localKeyValue->value ?
149
OpenAPI_presence_info_rm_convertToJSON(localKeyValue->value) :
150
cJSON_CreateNull();
151
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
46
1
2
if (sm_policy_dnn_data->ref_um_data_limit_ids) {
3
OpenAPI_list_for_each(sm_policy_dnn_data->ref_um_data_limit_ids, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed ref_um_data_limit_ids");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed ref_um_data_limit_ids");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_limit_id_to_monitoring_key_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (sm_policy_dnn_data->pra_infos) {
18
OpenAPI_list_for_each(sm_policy_dnn_data->pra_infos, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed pra_infos");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed pra_infos");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
32
if (sm_policy_dnn_data->bdt_ref_ids) {
33
OpenAPI_list_for_each(sm_policy_dnn_data->bdt_ref_ids, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed bdt_ref_ids");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed bdt_ref_ids");
41
+ goto end;
42
+ }
43
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) {
44
ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed inner");
45
goto end;
46
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
16
1
2
if (sm_policy_dnn_data_patch->bdt_ref_ids) {
3
OpenAPI_list_for_each(sm_policy_dnn_data_patch->bdt_ref_ids, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_sm_policy_dnn_data_patch_convertToJSON() failed bdt_ref_ids");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_sm_policy_dnn_data_patch_convertToJSON() failed bdt_ref_ids");
11
+ goto end;
12
+ }
13
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, (char*)localKeyValue->value) == NULL) {
14
ogs_error("OpenAPI_sm_policy_dnn_data_patch_convertToJSON() failed inner");
15
goto end;
16
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
16
1
2
if (sm_policy_snssai_data->sm_policy_dnn_data) {
3
OpenAPI_list_for_each(sm_policy_snssai_data->sm_policy_dnn_data, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_sm_policy_snssai_data_convertToJSON() failed sm_policy_dnn_data");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_sm_policy_snssai_data_convertToJSON() failed sm_policy_dnn_data");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_sm_policy_dnn_data_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (sm_policy_snssai_data_patch->sm_policy_dnn_data) {
3
OpenAPI_list_for_each(sm_policy_snssai_data_patch->sm_policy_dnn_data, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_sm_policy_snssai_data_patch_convertToJSON() failed sm_policy_dnn_data");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_sm_policy_snssai_data_patch_convertToJSON() failed sm_policy_dnn_data");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_sm_policy_dnn_data_patch_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (sm_policy_update_context_data->rep_pra_infos) {
3
OpenAPI_list_for_each(sm_policy_update_context_data->rep_pra_infos, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_sm_policy_update_context_data_convertToJSON() failed rep_pra_infos");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_sm_policy_update_context_data_convertToJSON() failed rep_pra_infos");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(smf_change_info->pdu_session_id_list, node) {
5
- if (cJSON_AddNumberToObject(pdu_session_id_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_smf_change_info_convertToJSON() failed pdu_session_id_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(pdu_session_id_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_smf_change_info_convertToJSON() failed pdu_session_id_list");
12
goto end;
13
}
14
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
16
1
2
if (smf_selection_data->candidates) {
3
OpenAPI_list_for_each(smf_selection_data->candidates, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_smf_selection_data_convertToJSON() failed candidates");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_smf_selection_data_convertToJSON() failed candidates");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_candidate_for_replacement_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (smf_selection_subscription_data->subscribed_snssai_infos) {
3
OpenAPI_list_for_each(smf_selection_subscription_data->subscribed_snssai_infos, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_smf_selection_subscription_data_convertToJSON() failed subscribed_snssai_infos");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_smf_selection_subscription_data_convertToJSON() failed subscribed_snssai_infos");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_snssai_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (spatial_validity->presence_info_list) {
3
OpenAPI_list_for_each(spatial_validity->presence_info_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_spatial_validity_convertToJSON() failed presence_info_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_spatial_validity_convertToJSON() failed presence_info_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (spatial_validity_rm->presence_info_list) {
3
OpenAPI_list_for_each(spatial_validity_rm->presence_info_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_spatial_validity_rm_convertToJSON() failed presence_info_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_spatial_validity_rm_convertToJSON() failed presence_info_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(suci_info->h_nw_pub_key_ids, node) {
5
- if (cJSON_AddNumberToObject(h_nw_pub_key_idsList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_suci_info_convertToJSON() failed h_nw_pub_key_ids");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(h_nw_pub_key_idsList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_suci_info_convertToJSON() failed h_nw_pub_key_ids");
12
goto end;
13
}
14
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
16
1
2
if (traffic_descriptor_components->app_descs) {
3
OpenAPI_list_for_each(traffic_descriptor_components->app_descs, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_traffic_descriptor_components_convertToJSON() failed app_descs");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_traffic_descriptor_components_convertToJSON() failed app_descs");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_app_descriptor_1_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (tsctsf_info->s_nssai_info_list) {
3
OpenAPI_list_for_each(tsctsf_info->s_nssai_info_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_tsctsf_info_convertToJSON() failed s_nssai_info_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_tsctsf_info_convertToJSON() failed s_nssai_info_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_snssai_tsctsf_info_item_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (uc_subscription_data->user_consent_per_purpose_list) {
3
OpenAPI_list_for_each(uc_subscription_data->user_consent_per_purpose_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_uc_subscription_data_convertToJSON() failed user_consent_per_purpose_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_uc_subscription_data_convertToJSON() failed user_consent_per_purpose_list");
11
+ goto end;
12
+ }
13
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, OpenAPI_user_consent_ToString((intptr_t)localKeyValue->value)) == NULL) {
14
ogs_error("OpenAPI_uc_subscription_data_convertToJSON() failed user_consent_per_purpose_list");
15
goto end;
16
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
16
1
2
if (udsf_info->storage_id_ranges) {
3
OpenAPI_list_for_each(udsf_info->storage_id_ranges, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_udsf_info_convertToJSON() failed storage_id_ranges");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_udsf_info_convertToJSON() failed storage_id_ranges");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_identity_range_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (ue_authentication_ctx->_links) {
3
OpenAPI_list_for_each(ue_authentication_ctx->_links, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ue_authentication_ctx_convertToJSON() failed _links");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ue_authentication_ctx_convertToJSON() failed _links");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
61
1
2
if (ue_context->sub_ue_slice_mbr_list) {
3
OpenAPI_list_for_each(ue_context->sub_ue_slice_mbr_list, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ue_context_convertToJSON() failed sub_ue_slice_mbr_list");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ue_context_convertToJSON() failed sub_ue_slice_mbr_list");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_slice_mbr_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (ue_context->pra_in_am_policy) {
18
OpenAPI_list_for_each(ue_context->pra_in_am_policy, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_ue_context_convertToJSON() failed pra_in_am_policy");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_ue_context_convertToJSON() failed pra_in_am_policy");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
32
if (ue_context->pra_in_ue_policy) {
33
OpenAPI_list_for_each(ue_context->pra_in_ue_policy, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_ue_context_convertToJSON() failed pra_in_ue_policy");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_ue_context_convertToJSON() failed pra_in_ue_policy");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
47
if (ue_context->pcf_ue_slice_mbr_list) {
48
OpenAPI_list_for_each(ue_context->pcf_ue_slice_mbr_list, node) {
49
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
50
+ if (localKeyValue == NULL) {
51
+ ogs_error("OpenAPI_ue_context_convertToJSON() failed pcf_ue_slice_mbr_list");
52
+ goto end;
53
+ }
54
+ if (localKeyValue->key == NULL) {
55
+ ogs_error("OpenAPI_ue_context_convertToJSON() failed pcf_ue_slice_mbr_list");
56
+ goto end;
57
+ }
58
cJSON *itemLocal = localKeyValue->value ?
59
OpenAPI_slice_mbr_convertToJSON(localKeyValue->value) :
60
cJSON_CreateNull();
61
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
16
1
2
if (ue_context_in_smf_data->pdu_sessions) {
3
OpenAPI_list_for_each(ue_context_in_smf_data->pdu_sessions, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ue_context_in_smf_data_convertToJSON() failed pdu_sessions");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ue_context_in_smf_data_convertToJSON() failed pdu_sessions");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_pdu_session_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
46
1
2
if (ue_policy_set->pra_infos) {
3
OpenAPI_list_for_each(ue_policy_set->pra_infos, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed pra_infos");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed pra_infos");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_presence_info_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
17
if (ue_policy_set->ue_policy_sections) {
18
OpenAPI_list_for_each(ue_policy_set->ue_policy_sections, node) {
19
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
20
+ if (localKeyValue == NULL) {
21
+ ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed ue_policy_sections");
22
+ goto end;
23
+ }
24
+ if (localKeyValue->key == NULL) {
25
+ ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed ue_policy_sections");
26
+ goto end;
27
+ }
28
cJSON *itemLocal = localKeyValue->value ?
29
OpenAPI_ue_policy_section_convertToJSON(localKeyValue->value) :
30
cJSON_CreateNull();
31
32
if (ue_policy_set->allowed_route_sel_descs) {
33
OpenAPI_list_for_each(ue_policy_set->allowed_route_sel_descs, node) {
34
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
35
+ if (localKeyValue == NULL) {
36
+ ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed allowed_route_sel_descs");
37
+ goto end;
38
+ }
39
+ if (localKeyValue->key == NULL) {
40
+ ogs_error("OpenAPI_ue_policy_set_convertToJSON() failed allowed_route_sel_descs");
41
+ goto end;
42
+ }
43
cJSON *itemLocal = localKeyValue->value ?
44
OpenAPI_plmn_route_selection_descriptor_convertToJSON(localKeyValue->value) :
45
cJSON_CreateNull();
46
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
16
1
2
if (ue_policy_set_patch->ue_policy_sections) {
3
OpenAPI_list_for_each(ue_policy_set_patch->ue_policy_sections, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ue_policy_set_patch_convertToJSON() failed ue_policy_sections");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ue_policy_set_patch_convertToJSON() failed ue_policy_sections");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_ue_policy_section_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(ue_reg_status_update_req_data->to_release_session_list, node) {
5
- if (cJSON_AddNumberToObject(to_release_session_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_ue_reg_status_update_req_data_convertToJSON() failed to_release_session_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(to_release_session_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_ue_reg_status_update_req_data_convertToJSON() failed to_release_session_list");
12
goto end;
13
}
14
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
16
1
2
if (ue_slice_mbr->slice_mbr) {
3
OpenAPI_list_for_each(ue_slice_mbr->slice_mbr, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_ue_slice_mbr_convertToJSON() failed slice_mbr");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_ue_slice_mbr_convertToJSON() failed slice_mbr");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_slice_mbr_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (uri_list->_links) {
3
OpenAPI_list_for_each(uri_list->_links, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_uri_list_convertToJSON() failed _links");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_uri_list_convertToJSON() failed _links");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_links_value_schema_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (usage_mon_data->scopes) {
3
OpenAPI_list_for_each(usage_mon_data->scopes, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_usage_mon_data_convertToJSON() failed scopes");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_usage_mon_data_convertToJSON() failed scopes");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_usage_mon_data_scope_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
16
1
2
if (usage_mon_data_limit->scopes) {
3
OpenAPI_list_for_each(usage_mon_data_limit->scopes, node) {
4
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
5
+ if (localKeyValue == NULL) {
6
+ ogs_error("OpenAPI_usage_mon_data_limit_convertToJSON() failed scopes");
7
+ goto end;
8
+ }
9
+ if (localKeyValue->key == NULL) {
10
+ ogs_error("OpenAPI_usage_mon_data_limit_convertToJSON() failed scopes");
11
+ goto end;
12
+ }
13
cJSON *itemLocal = localKeyValue->value ?
14
OpenAPI_usage_mon_data_scope_convertToJSON(localKeyValue->value) :
15
cJSON_CreateNull();
16
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(vsmf_update_data->revoke_ebi_list, node) {
5
- if (cJSON_AddNumberToObject(revoke_ebi_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_vsmf_update_data_convertToJSON() failed revoke_ebi_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(revoke_ebi_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_vsmf_update_data_convertToJSON() failed revoke_ebi_list");
12
goto end;
13
}
14
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
14
1
2
goto end;
3
}
4
OpenAPI_list_for_each(vsmf_updated_data->released_ebi_list, node) {
5
- if (cJSON_AddNumberToObject(released_ebi_listList, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_vsmf_updated_data_convertToJSON() failed released_ebi_list");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject(released_ebi_listList, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_vsmf_updated_data_convertToJSON() failed released_ebi_list");
12
goto end;
13
}
14
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
42
1
2
}
3
{{/isByteArray}}
4
{{#isNumeric}}
5
- if (cJSON_AddNumberToObject({{{name}}}List, "", (uintptr_t)node->data) == NULL) {
6
+ if (node->data == NULL) {
7
+ ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}");
8
+ goto end;
9
+ }
10
+ if (cJSON_AddNumberToObject({{{name}}}List, "", *(double *)node->data) == NULL) {
11
ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}");
12
goto end;
13
}
14
15
if ({{{classname}}}->{{{name}}}) {
16
OpenAPI_list_for_each({{{classname}}}->{{{name}}}, node) {
17
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)node->data;
18
+ if (localKeyValue == NULL) {
19
+ ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}");
20
+ goto end;
21
+ }
22
+ if (localKeyValue->key == NULL) {
23
+ ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}");
24
+ goto end;
25
+ }
26
{{#isEnum}}
27
if (cJSON_AddStringToObject(localMapObject, localKeyValue->key, OpenAPI_{{{complexType}}}_ToString((intptr_t)localKeyValue->value)) == NULL) {
28
ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}");
29
30
}
31
{{/isByteArray}}
32
{{#isNumeric}}
33
- if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, (uintptr_t)localKeyValue->value) == NULL) {
34
+ if (localKeyValue->value == NULL) {
35
+ ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}");
36
+ goto end;
37
+ }
38
+ if (cJSON_AddNumberToObject(localMapObject, localKeyValue->key, *(double *)localKeyValue->value) == NULL) {
39
ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}");
40
goto end;
41
}
42
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
25
1
2
{
3
amf_sess_t *sess = NULL;
4
uint16_t psimask;
5
- int i = 0;
6
+ int i = 0, served_tai_index = 0;
7
8
ogs_nas_5gs_tracking_area_identity_t *last_visited_registered_tai = NULL;
9
ogs_nas_uplink_data_status_t *uplink_data_status = NULL;
10
11
update_type = ®istration_request->update_type;
12
ogs_assert(update_type);
13
14
+ served_tai_index = amf_find_served_tai(&amf_ue->nr_tai);
15
+ if (served_tai_index < 0) {
16
+ ogs_error("Cannot find Served TAIPLMN_ID:%06x,TAC:%d",
17
+ ogs_plmn_id_hexdump(&amf_ue->nr_tai.plmn_id), amf_ue->nr_tai.tac.v);
18
+ return OGS_5GMM_CAUSE_TRACKING_AREA_NOT_ALLOWED;
19
+ }
20
+ ogs_debug(" SERVED_TAI_INDEX%d", served_tai_index);
21
+
22
if (registration_request->presencemask &
23
OGS_NAS_5GS_REGISTRATION_REQUEST_NAS_MESSAGE_CONTAINER_PRESENT) {
24
25
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
148
1
2
/* handle config in sbi library */
3
} else if (!strcmp(scp_key, "discovery")) {
4
/* handle config in sbi library */
5
+ } else if (!strcmp(scp_key, "info")) {
6
+ ogs_sbi_nf_instance_t *nf_instance = NULL;
7
+ ogs_sbi_nf_info_t *nf_info = NULL;
8
+ ogs_sbi_scp_info_t *scp_info = NULL;
9
+
10
+ ogs_yaml_iter_t info_iter;
11
+ ogs_yaml_iter_recurse(&scp_iter, &info_iter);
12
+
13
+ nf_instance = ogs_sbi_self()->nf_instance;
14
+ ogs_assert(nf_instance);
15
+
16
+ nf_info = ogs_sbi_nf_info_add(
17
+ &nf_instance->nf_info_list,
18
+ OpenAPI_nf_type_SCP);
19
+ ogs_assert(nf_info);
20
+
21
+ scp_info = &nf_info->scp;
22
+
23
+ while (ogs_yaml_iter_next(&info_iter)) {
24
+ const char *info_key =
25
+ ogs_yaml_iter_key(&info_iter);
26
+ ogs_assert(info_key);
27
+ if (!strcmp(info_key, "domain")) {
28
+ ogs_yaml_iter_t domain_array, domain_iter;
29
+ ogs_yaml_iter_recurse(&info_iter, &domain_array);
30
+
31
+ do {
32
+ if (ogs_yaml_iter_type(&domain_array) ==
33
+ YAML_MAPPING_NODE) {
34
+ memcpy(&domain_iter, &domain_array,
35
+ sizeof(ogs_yaml_iter_t));
36
+ } else if (ogs_yaml_iter_type(&domain_array) ==
37
+ YAML_SEQUENCE_NODE) {
38
+ if (!ogs_yaml_iter_next(&domain_array))
39
+ break;
40
+ ogs_yaml_iter_recurse(&domain_array,
41
+ &domain_iter);
42
+ } else if (ogs_yaml_iter_type(&domain_array) ==
43
+ YAML_SCALAR_NODE) {
44
+ break;
45
+ } else
46
+ ogs_assert_if_reached();
47
+
48
+ while (ogs_yaml_iter_next(&domain_iter)) {
49
+ const char *domain_key =
50
+ ogs_yaml_iter_key(&domain_iter);
51
+ ogs_assert(domain_key);
52
+ if (!strcmp(domain_key, "port")) {
53
+ ogs_yaml_iter_t port_iter;
54
+ ogs_yaml_iter_recurse(&domain_iter,
55
+ &port_iter);
56
+ while (ogs_yaml_iter_next(&port_iter)) {
57
+ const char *port_key =
58
+ ogs_yaml_iter_key(&port_iter);
59
+ ogs_assert(port_key);
60
+ if (!strcmp(port_key, "http")) {
61
+ const char *v =
62
+ ogs_yaml_iter_value(
63
+ &port_iter);
64
+ if (v) {
65
+ scp_info->domain
66
+ scp_info->
67
+ num_of_domain.
68
+ http.presence =
69
+ true;
70
+ scp_info->domain
71
+ scp_info->
72
+ num_of_domain.
73
+ http.port = atoi(v);
74
+ }
75
+ } else if (!strcmp(port_key,
76
+ "https")) {
77
+ const char *v =
78
+ ogs_yaml_iter_value(
79
+ &port_iter);
80
+ if (v) {
81
+ scp_info->domain
82
+ scp_info->
83
+ num_of_domain.
84
+ https.presence =
85
+ true;
86
+ scp_info->domain
87
+ scp_info->
88
+ num_of_domain.
89
+ https.port =
90
+ atoi(v);
91
+ }
92
+ } else
93
+ ogs_warn("unknown key `%s`",
94
+ port_key);
95
+ }
96
+ } else if (!strcmp(domain_key, "name")) {
97
+ scp_info->domain
98
+ scp_info->num_of_domain.
99
+ name = (char *)ogs_yaml_iter_value(
100
+ &domain_iter);
101
+ } else if (!strcmp(domain_key, "fqdn")) {
102
+ scp_info->domain
103
+ scp_info->num_of_domain.
104
+ fqdn = (char *)ogs_yaml_iter_value(
105
+ &domain_iter);
106
+ } else
107
+ ogs_warn("unknown key `%s`",
108
+ domain_key);
109
+ }
110
+
111
+ if (scp_info->domain
112
+ scp_info->num_of_domain.name)
113
+ scp_info->num_of_domain++;
114
+
115
+ } while (ogs_yaml_iter_type(&domain_array) ==
116
+ YAML_SEQUENCE_NODE);
117
+
118
+ } else if (!strcmp(info_key, "port")) {
119
+ ogs_yaml_iter_t port_iter;
120
+ ogs_yaml_iter_recurse(&info_iter, &port_iter);
121
+ while (ogs_yaml_iter_next(&port_iter)) {
122
+ const char *port_key =
123
+ ogs_yaml_iter_key(&port_iter);
124
+ ogs_assert(port_key);
125
+ if (!strcmp(port_key, "http")) {
126
+ const char *v =
127
+ ogs_yaml_iter_value(&port_iter);
128
+ if (v) {
129
+ scp_info->http.presence = true;
130
+ scp_info->http.port = atoi(v);
131
+ }
132
+ } else if (!strcmp(port_key, "https")) {
133
+ const char *v =
134
+ ogs_yaml_iter_value(&port_iter);
135
+ if (v) {
136
+ scp_info->https.presence = true;
137
+ scp_info->https.port = atoi(v);
138
+ }
139
+ } else
140
+ ogs_warn("unknown key `%s`", port_key);
141
+ }
142
+ } else
143
+ ogs_warn("unknown key `%s`", info_key);
144
+ }
145
} else
146
ogs_warn("unknown key `%s`", scp_key);
147
}
148