Changes of Revision 17

open5gs_2.6.3.dsc -> open5gs_2.6.4.dsc Changed
x
 
1
@@ -2,7 +2,7 @@
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
+Version: 2.6.4
7
 Maintainer: Harald Welte <laforge@gnumonks.org>
8
 Uploaders: Sukchan Lee <acetcom@gmail.com>
9
 Homepage: https://open5gs.org
10
@@ -31,8 +31,8 @@
11
  open5gs-udr deb net optional arch=any
12
  open5gs-upf deb net optional arch=any
13
 Checksums-Sha1:
14
- 062b6374186956af41192a4b297ea3c7e85ad80c 14116892 open5gs_2.6.3.tar.xz
15
+ 19941fd2e7bf2e13e7bdc6fa9dff9ac4b9029681 14122996 open5gs_2.6.4.tar.xz
16
 Checksums-Sha256:
17
- 7c07cabbe9cb5d0886993cddb16aaee7d97007a3fd1998e234cccd4dd69c2933 14116892 open5gs_2.6.3.tar.xz
18
+ a12278efe5e45ff8e2e5023bea2d4dcf0e97474e45425df1e5b053388d0e368f 14122996 open5gs_2.6.4.tar.xz
19
 Files:
20
- d931a2b8835315104148d14efb21adb0 14116892 open5gs_2.6.3.tar.xz
21
+ a1e188c2587f18381c9cd77ad9fce6d1 14122996 open5gs_2.6.4.tar.xz
22
open5gs_2.6.3.tar.xz/.tarball-version -> open5gs_2.6.4.tar.xz/.tarball-version Changed
4
 
1
@@ -1 +1 @@
2
-2.6.3
3
+2.6.4
4
open5gs_2.6.3.tar.xz/configs/open5gs/mme.yaml.in -> open5gs_2.6.4.tar.xz/configs/open5gs/mme.yaml.in Changed
26
 
1
@@ -450,6 +450,24 @@
2
 #      - addr: 127.0.0.4
3
 #      - addr: 127.0.0.5
4
 #        apn: volte
5
+#
6
+# o SMF selection by eNodeB TAC
7
+#   (either single TAC or multiple TACs, DECIMAL representation)
8
+#
9
+#   gtpc:
10
+#     - addr: 127.0.0.4
11
+#       tac: 26000
12
+#     - addr: 127.0.2.4
13
+#       tac: 25000, 27000, 28000
14
+#
15
+# o SMF selection by e_cell_id(28bit)
16
+#   (either single or multiple e_cell_id, HEX representation)
17
+#
18
+#   gtpc:
19
+#     - addr: 127.0.0.4
20
+#       e_cell_id: abcde01
21
+#     - addr: 127.0.2.4
22
+#       e_cell_id: 12345, a9413, 98765
23
 smf:
24
     gtpc:
25
       - addr:
26
open5gs_2.6.3.tar.xz/configs/open5gs/scp.yaml.in -> open5gs_2.6.4.tar.xz/configs/open5gs/scp.yaml.in Changed
53
 
1
@@ -178,6 +178,51 @@
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.tar.xz/debian/changelog -> open5gs_2.6.4.tar.xz/debian/changelog Changed
35
 
1
@@ -1,3 +1,33 @@
2
+open5gs (2.6.4) unstable; urgency=medium
3
+
4
+  * Bug Fixed
5
+
6
+ -- Sukchan Lee <acetcom@gmail.com>  Sun, 21 May 2023 08:45:36 +0900
7
+
8
+open5gs (2.6.4~kinetic) kinetic; urgency=medium
9
+
10
+  * Bug Fixed
11
+
12
+ -- Sukchan Lee <acetcom@gmail.com>  Sun, 21 May 2023 08:43:48 +0900
13
+
14
+open5gs (2.6.4~jammy) jammy; urgency=medium
15
+
16
+  * Bug Fixed
17
+
18
+ -- Sukchan Lee <acetcom@gmail.com>  Sun, 21 May 2023 08:41:35 +0900
19
+
20
+open5gs (2.6.4~focal) focal; urgency=medium
21
+
22
+  * Bug Fixed
23
+
24
+ -- Sukchan Lee <acetcom@gmail.com>  Sun, 21 May 2023 08:39:42 +0900
25
+
26
+open5gs (2.6.4~bionic) bionic; urgency=medium
27
+
28
+  * Bug Fixed
29
+
30
+ -- Sukchan Lee <acetcom@gmail.com>  Sun, 21 May 2023 08:36:36 +0900
31
+
32
 open5gs (2.6.3) unstable; urgency=medium
33
 
34
   * PFCP restoration
35
open5gs_2.6.3.tar.xz/docs/_docs/guide/01-quickstart.md -> open5gs_2.6.4.tar.xz/docs/_docs/guide/01-quickstart.md Changed
12
 
1
@@ -78,8 +78,8 @@
2
 
3
 ```bash
4
 $ sudo apt update
5
-$ sudo apt install wget gnupg
6
-$ wget -qO - https://pgp.mongodb.com/server-6.0.asc | sudo apt-key add -
7
+$ sudo apt install gnupg
8
+$ curl -fsSL https://pgp.mongodb.com/server-6.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg --dearmor
9
 ```
10
 
11
 Create the list file /etc/apt/sources.list.d/mongodb-org-6.0.list for your version of Ubuntu.
12
open5gs_2.6.3.tar.xz/docs/_docs/guide/02-building-open5gs-from-sources.md -> open5gs_2.6.4.tar.xz/docs/_docs/guide/02-building-open5gs-from-sources.md Changed
12
 
1
@@ -17,8 +17,8 @@
2
 
3
 ```bash
4
 $ sudo apt update
5
-$ sudo apt install wget gnupg
6
-$ wget -qO - https://pgp.mongodb.com/server-6.0.asc | sudo apt-key add -
7
+$ sudo apt install gnupg
8
+$ curl -fsSL https://pgp.mongodb.com/server-6.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg --dearmor
9
 ```
10
 
11
 Create the list file /etc/apt/sources.list.d/mongodb-org-6.0.list for your version of Ubuntu.
12
open5gs_2.6.3.tar.xz/docs/_docs/tutorial/01-your-first-lte.md -> open5gs_2.6.4.tar.xz/docs/_docs/tutorial/01-your-first-lte.md Changed
10
 
1
@@ -165,7 +165,7 @@
2
 The Open5GS package is available on the recent versions of *Ubuntu*.
3
 ```bash
4
 # Install the MongoDB Packages
5
-$ wget -qO - https://pgp.mongodb.com/server-6.0.asc | sudo apt-key add -
6
+$ curl -fsSL https://pgp.mongodb.com/server-6.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg --dearmor
7
 $ echo "deb  arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
8
 $ sudo apt update
9
 $ sudo apt install mongodb-org
10
open5gs_2.6.3.tar.xz/docs/_pages/docs.md -> open5gs_2.6.4.tar.xz/docs/_pages/docs.md Changed
17
 
1
@@ -41,6 +41,7 @@
2
   - Open5GS on Amazon Elastic Kubernetes Service(https://aws.amazon.com/blogs/opensource/open-source-mobile-core-network-implementation-on-amazon-elastic-kubernetes-service/)
3
   - Kubernetes Open5GS Deployment(https://dev.to/infinitydon/virtual-4g-simulation-using-kubernetes-and-gns3-3b7k?fbclid=IwAR1p99h13a-mCfejanbBQe0H0-jp5grXkn5mWf1WrTHf47UtegB2-UHGGZQ)
4
   - 5G Core SBI mTLS Using External Certificate PKI(https://futuredon.medium.com/5g-core-sbi-mtls-using-external-certificate-pki-4ffc02ac7728)
5
+  - 5G Frame Routing(https://futuredon.medium.com/5g-frame-routing-6e34d8587123)
6
 
7
 - @nickvsnetworking
8
   - My first 5G Core : Open5GS and UERANSIM(http://nickvsnetworking.com/my-first-5g-core-open5gs-and-ueransim/)
9
@@ -57,6 +58,7 @@
10
   - Open5GS 5GC & UERANSIM UE/RAN Sample Configuration(https://github.com/s5uishida/open5gs_5gc_ueransim_sample_config)
11
   - Open5GS & UERANSIM - Select nearby UPF according to the connected gNodeB(https://github.com/s5uishida/open5gs_5gc_ueransim_nearby_upf_sample_config)
12
   - VoLTE and SMS Configuration for docker_open5gs(https://github.com/s5uishida/docker_open5gs_volte_sms_config)
13
+  - Select nearby UPF(PGW-U) according to the connected eNodeB(https://github.com/s5uishida/open5gs_epc_srsran_nearby_upf_sample_config)
14
   - Select UPF based on S-NSSAI(https://github.com/s5uishida/open5gs_5gc_ueransim_snssai_upf_sample_config)
15
   - SCP Indirect communication Model C(https://github.com/s5uishida/open5gs_5gc_ueransim_scp_model_c_sample_config)
16
   - Monitoring Metrics with Prometheus(https://github.com/s5uishida/open5gs_5gc_ueransim_metrics_sample_config)
17
open5gs_2.6.3.tar.xz/docs/_pages/support.md -> open5gs_2.6.4.tar.xz/docs/_pages/support.md Changed
11
 
1
@@ -11,7 +11,8 @@
2
 
3
 Open5GS is licensed under a dual licensing model designed to meet the development and distribution needs of both commercial and open source projects.
4
 
5
-The commercial Open5GS license gives you the full rights to create and distribute software on your own terms without any open source license obligations. With the commercial license, you also have access to the official NeoPlane Support and close strategic relationship with NeoPlane(https://neoplane.io) to make sure your development goals are met.
6
+The commercial Open5GS license gives you the full rights to create and distribute software on your own terms without any open source license obligations. You can grow with Open5GS by establishing a close strategic relationship with NeoPlane(https://neoplane.io).
7
+
8
 
9
 Open5GS is also available under AGPL-3.0 open source licenses. The Open5GS open source licensing is ideal for use cases such as open source projects with open source distribution, student/academic purposes, hobby projects, internal research projects without external distribution, or other projects where all AGPL-3.0 obligations can be met.
10
 
11
open5gs_2.6.4.tar.xz/docs/_posts/2023-05-21-release-v2.6.4.md Added
17
 
1
@@ -0,0 +1,15 @@
2
+---
3
+title: "v2.6.4 - Bug Fixed"
4
+date: 2023-05-21 08:49:00 +0900
5
+categories:
6
+  - Release
7
+tags:
8
+  - News
9
+  - Release
10
+head_inline: "<style> ul { padding-bottom: 1em; } .blue { color: blue; }</style>"
11
+---
12
+
13
+See Release Note(https://github.com/open5gs/open5gs/releases/tag/v2.6.4)
14
+
15
+Download -- v2.6.4.tar.gz(https://github.com/open5gs/open5gs/archive/v2.6.4.tar.gz)
16
+{: .notice--info}
17
open5gs_2.6.3.tar.xz/lib/core/ogs-conv.c -> open5gs_2.6.4.tar.xz/lib/core/ogs-conv.c Changed
18
 
1
@@ -239,3 +239,16 @@
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.tar.xz/lib/core/ogs-conv.h -> open5gs_2.6.4.tar.xz/lib/core/ogs-conv.h Changed
10
 
1
@@ -55,6 +55,8 @@
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.tar.xz/lib/proto/types.h -> open5gs_2.6.4.tar.xz/lib/proto/types.h Changed
13
 
1
@@ -795,6 +795,11 @@
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.tar.xz/lib/sbi/context.c -> open5gs_2.6.4.tar.xz/lib/sbi/context.c Changed
23
 
1
@@ -1259,6 +1259,11 @@
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
@@ -1273,6 +1278,9 @@
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.tar.xz/lib/sbi/context.h -> open5gs_2.6.4.tar.xz/lib/sbi/context.h Changed
36
 
1
@@ -29,6 +29,7 @@
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
@@ -297,6 +298,18 @@
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
@@ -328,6 +341,7 @@
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.tar.xz/lib/sbi/nnrf-build.c -> open5gs_2.6.4.tar.xz/lib/sbi/nnrf-build.c Changed
201
 
1
@@ -24,8 +24,10 @@
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
@@ -87,11 +89,11 @@
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
@@ -297,6 +299,14 @@
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
@@ -335,6 +345,14 @@
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
@@ -412,6 +430,9 @@
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
@@ -1041,6 +1062,130 @@
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
@@ -1204,6 +1349,48 @@
197
     ogs_free(AmfInfo);
198
 }
199
 
200
+static void free_scp_info(OpenAPI_scp_info_t *ScpInfo)
201
open5gs_2.6.3.tar.xz/lib/sbi/ogs-sbi.h -> open5gs_2.6.4.tar.xz/lib/sbi/ogs-sbi.h Changed
10
 
1
@@ -28,6 +28,8 @@
2
 #pragma GCC diagnostic ignored "-Wstrict-prototypes"
3
 #endif
4
 
5
+#define OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING 1
6
+
7
 #include "model/nf_profile.h"
8
 #include "model/nf_group_cond.h"
9
 #include "model/smf_info.h"
10
open5gs_2.6.3.tar.xz/lib/sbi/openapi/model/acceptable_service_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/acceptable_service_info.c Changed
16
 
1
@@ -69,6 +69,14 @@
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.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data.c Changed
31
 
1
@@ -400,6 +400,14 @@
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
@@ -834,6 +842,14 @@
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.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data_1.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data_1.c Changed
31
 
1
@@ -400,6 +400,14 @@
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
@@ -834,6 +842,14 @@
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.tar.xz/lib/sbi/openapi/model/am_policy_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/am_policy_data.c Changed
16
 
1
@@ -66,6 +66,14 @@
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.tar.xz/lib/sbi/openapi/model/am_requested_value_rep.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/am_requested_value_rep.c Changed
16
 
1
@@ -106,6 +106,14 @@
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.tar.xz/lib/sbi/openapi/model/amf_event.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/amf_event.c Changed
16
 
1
@@ -272,6 +272,14 @@
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.tar.xz/lib/sbi/openapi/model/amf_event_subscription_add_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/amf_event_subscription_add_info.c Changed
16
 
1
@@ -123,6 +123,14 @@
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.tar.xz/lib/sbi/openapi/model/app_descriptor_1.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/app_descriptor_1.c Changed
16
 
1
@@ -75,6 +75,14 @@
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.tar.xz/lib/sbi/openapi/model/app_session_context_req_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/app_session_context_req_data.c Changed
16
 
1
@@ -304,6 +304,14 @@
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.tar.xz/lib/sbi/openapi/model/app_session_context_update_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/app_session_context_update_data.c Changed
16
 
1
@@ -215,6 +215,14 @@
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.tar.xz/lib/sbi/openapi/model/area_scope.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/area_scope.c Changed
16
 
1
@@ -126,6 +126,14 @@
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.tar.xz/lib/sbi/openapi/model/assign_ebi_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/assign_ebi_data.c Changed
14
 
1
@@ -98,7 +98,11 @@
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.tar.xz/lib/sbi/openapi/model/assigned_ebi_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/assigned_ebi_data.c Changed
27
 
1
@@ -119,7 +119,11 @@
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
@@ -133,7 +137,11 @@
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.tar.xz/lib/sbi/openapi/model/authorized_network_slice_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/authorized_network_slice_info.c Changed
16
 
1
@@ -288,6 +288,14 @@
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.tar.xz/lib/sbi/openapi/model/cag_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/cag_data.c Changed
16
 
1
@@ -66,6 +66,14 @@
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.tar.xz/lib/sbi/openapi/model/cag_data_1.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/cag_data_1.c Changed
16
 
1
@@ -66,6 +66,14 @@
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.tar.xz/lib/sbi/openapi/model/default_notification_subscription.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/default_notification_subscription.c Changed
16
 
1
@@ -163,6 +163,14 @@
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.tar.xz/lib/sbi/openapi/model/dnn_upf_info_item.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/dnn_upf_info_item.c Changed
16
 
1
@@ -215,6 +215,14 @@
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.tar.xz/lib/sbi/openapi/model/eap_auth_method_200_response.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/eap_auth_method_200_response.c Changed
16
 
1
@@ -75,6 +75,14 @@
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.tar.xz/lib/sbi/openapi/model/eap_session.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/eap_session.c Changed
16
 
1
@@ -114,6 +114,14 @@
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.tar.xz/lib/sbi/openapi/model/ee_group_profile_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ee_group_profile_data.c Changed
16
 
1
@@ -104,6 +104,14 @@
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.tar.xz/lib/sbi/openapi/model/ee_profile_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ee_profile_data.c Changed
16
 
1
@@ -111,6 +111,14 @@
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.tar.xz/lib/sbi/openapi/model/ee_subscription.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ee_subscription.c Changed
16
 
1
@@ -157,6 +157,14 @@
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.tar.xz/lib/sbi/openapi/model/ee_subscription_1.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ee_subscription_1.c Changed
16
 
1
@@ -157,6 +157,14 @@
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.tar.xz/lib/sbi/openapi/model/ee_subscription_ext.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ee_subscription_ext.c Changed
16
 
1
@@ -178,6 +178,14 @@
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.tar.xz/lib/sbi/openapi/model/eps_interworking_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/eps_interworking_info.c Changed
16
 
1
@@ -57,6 +57,14 @@
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.tar.xz/lib/sbi/openapi/model/event_subscription.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/event_subscription.c Changed
14
 
1
@@ -585,7 +585,11 @@
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.tar.xz/lib/sbi/openapi/model/ext_amf_event_subscription.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ext_amf_event_subscription.c Changed
16
 
1
@@ -404,6 +404,14 @@
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.tar.xz/lib/sbi/openapi/model/flows.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/flows.c Changed
27
 
1
@@ -62,7 +62,11 @@
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
@@ -76,7 +80,11 @@
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.tar.xz/lib/sbi/openapi/model/hsmf_update_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/hsmf_update_data.c Changed
27
 
1
@@ -609,7 +609,11 @@
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
@@ -630,7 +634,11 @@
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.tar.xz/lib/sbi/openapi/model/identity_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/identity_data.c Changed
16
 
1
@@ -126,6 +126,14 @@
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.tar.xz/lib/sbi/openapi/model/ie_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ie_info.c Changed
16
 
1
@@ -116,6 +116,14 @@
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.tar.xz/lib/sbi/openapi/model/inter_freq_target_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/inter_freq_target_info.c Changed
14
 
1
@@ -58,7 +58,11 @@
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.tar.xz/lib/sbi/openapi/model/inter_freq_target_info_1.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/inter_freq_target_info_1.c Changed
14
 
1
@@ -58,7 +58,11 @@
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.tar.xz/lib/sbi/openapi/model/iptv_config_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/iptv_config_data.c Changed
16
 
1
@@ -160,6 +160,14 @@
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.tar.xz/lib/sbi/openapi/model/iptv_config_data_patch.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/iptv_config_data_patch.c Changed
16
 
1
@@ -57,6 +57,14 @@
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.tar.xz/lib/sbi/openapi/model/mb_smf_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/mb_smf_info.c Changed
46
 
1
@@ -99,6 +99,14 @@
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
@@ -121,6 +129,14 @@
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
@@ -175,6 +191,14 @@
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.tar.xz/lib/sbi/openapi/model/mbs_session.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/mbs_session.c Changed
16
 
1
@@ -78,6 +78,14 @@
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.tar.xz/lib/sbi/openapi/model/media_component.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/media_component.c Changed
16
 
1
@@ -396,6 +396,14 @@
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.tar.xz/lib/sbi/openapi/model/media_component_rm.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/media_component_rm.c Changed
16
 
1
@@ -404,6 +404,14 @@
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.tar.xz/lib/sbi/openapi/model/n2_information_notification.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/n2_information_notification.c Changed
14
 
1
@@ -136,7 +136,11 @@
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.tar.xz/lib/sbi/openapi/model/n4_information.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/n4_information.c Changed
14
 
1
@@ -128,7 +128,11 @@
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.tar.xz/lib/sbi/openapi/model/nf_instance_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nf_instance_info.c Changed
22
 
1
@@ -89,7 +89,19 @@
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.tar.xz/lib/sbi/openapi/model/nf_profile.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nf_profile.c Changed
201
 
1
@@ -1028,6 +1028,14 @@
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
@@ -1063,6 +1071,14 @@
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
@@ -1098,6 +1114,14 @@
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
@@ -1133,6 +1157,14 @@
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
@@ -1168,6 +1200,14 @@
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
@@ -1203,6 +1243,14 @@
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
@@ -1238,6 +1286,14 @@
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
@@ -1273,6 +1329,14 @@
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
@@ -1308,6 +1372,14 @@
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
@@ -1369,6 +1441,14 @@
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
@@ -1404,6 +1484,14 @@
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
@@ -1426,6 +1514,14 @@
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
@@ -1448,6 +1544,14 @@
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
@@ -1513,6 +1617,14 @@
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.tar.xz/lib/sbi/openapi/model/nf_service.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nf_service.c Changed
46
 
1
@@ -440,6 +440,14 @@
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
@@ -454,6 +462,14 @@
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
@@ -563,6 +579,14 @@
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.tar.xz/lib/sbi/openapi/model/nrf_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nrf_info.c Changed
201
 
1
@@ -525,6 +525,14 @@
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
@@ -547,6 +555,14 @@
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
@@ -569,6 +585,14 @@
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
@@ -591,6 +615,14 @@
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
@@ -613,6 +645,14 @@
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
@@ -635,6 +675,14 @@
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
@@ -657,6 +705,14 @@
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
@@ -679,6 +735,14 @@
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
@@ -701,6 +765,14 @@
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
@@ -723,6 +795,14 @@
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
@@ -745,6 +825,14 @@
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
@@ -767,6 +855,14 @@
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
@@ -789,6 +885,14 @@
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
@@ -811,6 +915,14 @@
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.tar.xz/lib/sbi/openapi/model/nrf_info_served_mb_smf_info_list_value_value.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nrf_info_served_mb_smf_info_list_value_value.c Changed
46
 
1
@@ -99,6 +99,14 @@
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
@@ -121,6 +129,14 @@
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
@@ -175,6 +191,14 @@
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.tar.xz/lib/sbi/openapi/model/nrf_info_served_scp_info_list_value.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nrf_info_served_scp_info_list_value.c Changed
37
 
1
@@ -155,6 +155,14 @@
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
@@ -184,7 +192,19 @@
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.tar.xz/lib/sbi/openapi/model/nrf_info_served_sepp_info_list_value.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nrf_info_served_sepp_info_list_value.c Changed
22
 
1
@@ -88,7 +88,19 @@
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.tar.xz/lib/sbi/openapi/model/nrf_info_served_udsf_info_value.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nrf_info_served_udsf_info_value.c Changed
16
 
1
@@ -95,6 +95,14 @@
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.tar.xz/lib/sbi/openapi/model/nsag_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nsag_info.c Changed
14
 
1
@@ -81,7 +81,11 @@
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.tar.xz/lib/sbi/openapi/model/nsi_information.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nsi_information.c Changed
16
 
1
@@ -111,6 +111,14 @@
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.tar.xz/lib/sbi/openapi/model/nssai.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nssai.c Changed
16
 
1
@@ -139,6 +139,14 @@
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.tar.xz/lib/sbi/openapi/model/nssai_1.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/nssai_1.c Changed
16
 
1
@@ -139,6 +139,14 @@
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.tar.xz/lib/sbi/openapi/model/pdu_session_create_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/pdu_session_create_data.c Changed
14
 
1
@@ -527,7 +527,11 @@
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.tar.xz/lib/sbi/openapi/model/policy_association.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/policy_association.c Changed
16
 
1
@@ -246,6 +246,14 @@
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.tar.xz/lib/sbi/openapi/model/policy_association_update_request.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/policy_association_update_request.c Changed
16
 
1
@@ -346,6 +346,14 @@
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.tar.xz/lib/sbi/openapi/model/policy_data_change_notification.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/policy_data_change_notification.c Changed
16
 
1
@@ -275,6 +275,14 @@
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.tar.xz/lib/sbi/openapi/model/policy_data_for_individual_ue.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/policy_data_for_individual_ue.c Changed
31
 
1
@@ -126,6 +126,14 @@
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
@@ -148,6 +156,14 @@
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.tar.xz/lib/sbi/openapi/model/policy_update.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/policy_update.c Changed
16
 
1
@@ -236,6 +236,14 @@
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.tar.xz/lib/sbi/openapi/model/pp5g_vn_group_profile_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/pp5g_vn_group_profile_data.c Changed
16
 
1
@@ -63,6 +63,14 @@
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.tar.xz/lib/sbi/openapi/model/pp_profile_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/pp_profile_data.c Changed
16
 
1
@@ -63,6 +63,14 @@
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.tar.xz/lib/sbi/openapi/model/pro_se_authentication_ctx.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/pro_se_authentication_ctx.c Changed
16
 
1
@@ -83,6 +83,14 @@
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.tar.xz/lib/sbi/openapi/model/pro_se_eap_session.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/pro_se_eap_session.c Changed
16
 
1
@@ -105,6 +105,14 @@
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.tar.xz/lib/sbi/openapi/model/qos_flow_tunnel.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/qos_flow_tunnel.c Changed
14
 
1
@@ -60,7 +60,11 @@
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.tar.xz/lib/sbi/openapi/model/qos_monitoring_report.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/qos_monitoring_report.c Changed
40
 
1
@@ -94,7 +94,11 @@
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
@@ -108,7 +112,11 @@
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
@@ -122,7 +130,11 @@
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.tar.xz/lib/sbi/openapi/model/release_session_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/release_session_info.c Changed
14
 
1
@@ -56,7 +56,11 @@
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.tar.xz/lib/sbi/openapi/model/rule_report.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/rule_report.c Changed
14
 
1
@@ -110,7 +110,11 @@
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.tar.xz/lib/sbi/openapi/model/scheduled_communication_time.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/scheduled_communication_time.c Changed
14
 
1
@@ -63,7 +63,11 @@
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.tar.xz/lib/sbi/openapi/model/scheduled_communication_time_1.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/scheduled_communication_time_1.c Changed
14
 
1
@@ -63,7 +63,11 @@
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.tar.xz/lib/sbi/openapi/model/scheduled_communication_time_rm.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/scheduled_communication_time_rm.c Changed
14
 
1
@@ -63,7 +63,11 @@
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.tar.xz/lib/sbi/openapi/model/scp_domain_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/scp_domain_info.c Changed
22
 
1
@@ -108,7 +108,19 @@
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.tar.xz/lib/sbi/openapi/model/scp_domain_routing_information.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/scp_domain_routing_information.c Changed
16
 
1
@@ -60,6 +60,14 @@
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.tar.xz/lib/sbi/openapi/model/scp_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/scp_info.c Changed
37
 
1
@@ -155,6 +155,14 @@
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
@@ -184,7 +192,19 @@
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.tar.xz/lib/sbi/openapi/model/search_result.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/search_result.c Changed
16
 
1
@@ -161,6 +161,14 @@
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.tar.xz/lib/sbi/openapi/model/sepp_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sepp_info.c Changed
22
 
1
@@ -88,7 +88,19 @@
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.tar.xz/lib/sbi/openapi/model/sequence_number.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sequence_number.c Changed
22
 
1
@@ -85,7 +85,19 @@
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.tar.xz/lib/sbi/openapi/model/session_management_subscription_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/session_management_subscription_data.c Changed
61
 
1
@@ -155,6 +155,14 @@
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
@@ -191,6 +199,14 @@
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
@@ -243,6 +259,14 @@
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
@@ -265,6 +289,14 @@
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.tar.xz/lib/sbi/openapi/model/session_management_subscription_data_1.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/session_management_subscription_data_1.c Changed
61
 
1
@@ -155,6 +155,14 @@
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
@@ -191,6 +199,14 @@
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
@@ -243,6 +259,14 @@
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
@@ -265,6 +289,14 @@
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.tar.xz/lib/sbi/openapi/model/shared_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/shared_data.c Changed
61
 
1
@@ -182,6 +182,14 @@
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
@@ -217,6 +225,14 @@
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
@@ -239,6 +255,14 @@
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
@@ -261,6 +285,14 @@
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.tar.xz/lib/sbi/openapi/model/sm_context_create_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_context_create_data.c Changed
29
 
1
@@ -855,7 +855,11 @@
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
@@ -1304,6 +1308,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.tar.xz/lib/sbi/openapi/model/sm_context_retrieve_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_context_retrieve_data.c Changed
14
 
1
@@ -102,7 +102,11 @@
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.tar.xz/lib/sbi/openapi/model/sm_context_update_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_context_update_data.c Changed
14
 
1
@@ -642,7 +642,11 @@
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.tar.xz/lib/sbi/openapi/model/sm_context_updated_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_context_updated_data.c Changed
14
 
1
@@ -189,7 +189,11 @@
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.tar.xz/lib/sbi/openapi/model/sm_policy_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_policy_data.c Changed
46
 
1
@@ -99,6 +99,14 @@
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
@@ -120,6 +128,14 @@
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
@@ -142,6 +158,14 @@
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.tar.xz/lib/sbi/openapi/model/sm_policy_data_patch.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_policy_data_patch.c Changed
31
 
1
@@ -69,6 +69,14 @@
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
@@ -91,6 +99,14 @@
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.tar.xz/lib/sbi/openapi/model/sm_policy_decision.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_policy_decision.c Changed
151
 
1
@@ -261,6 +261,14 @@
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
@@ -283,6 +291,14 @@
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
@@ -312,6 +328,14 @@
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
@@ -334,6 +358,14 @@
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
@@ -369,6 +401,14 @@
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
@@ -391,6 +431,14 @@
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
@@ -413,6 +461,14 @@
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
@@ -435,6 +491,14 @@
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
@@ -464,6 +528,14 @@
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
@@ -557,6 +629,14 @@
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.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data.c Changed
46
 
1
@@ -277,6 +277,14 @@
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
@@ -334,6 +342,14 @@
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
@@ -356,6 +372,14 @@
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.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data_patch.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data_patch.c Changed
16
 
1
@@ -72,6 +72,14 @@
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.tar.xz/lib/sbi/openapi/model/sm_policy_snssai_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_policy_snssai_data.c Changed
16
 
1
@@ -84,6 +84,14 @@
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.tar.xz/lib/sbi/openapi/model/sm_policy_snssai_data_patch.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_policy_snssai_data_patch.c Changed
16
 
1
@@ -78,6 +78,14 @@
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.tar.xz/lib/sbi/openapi/model/sm_policy_update_context_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/sm_policy_update_context_data.c Changed
16
 
1
@@ -724,6 +724,14 @@
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.tar.xz/lib/sbi/openapi/model/smf_change_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/smf_change_info.c Changed
14
 
1
@@ -56,7 +56,11 @@
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.tar.xz/lib/sbi/openapi/model/smf_selection_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/smf_selection_data.c Changed
16
 
1
@@ -86,6 +86,14 @@
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.tar.xz/lib/sbi/openapi/model/smf_selection_subscription_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/smf_selection_subscription_data.c Changed
16
 
1
@@ -82,6 +82,14 @@
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.tar.xz/lib/sbi/openapi/model/spatial_validity.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/spatial_validity.c Changed
16
 
1
@@ -60,6 +60,14 @@
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.tar.xz/lib/sbi/openapi/model/spatial_validity_rm.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/spatial_validity_rm.c Changed
16
 
1
@@ -60,6 +60,14 @@
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.tar.xz/lib/sbi/openapi/model/suci_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/suci_info.c Changed
14
 
1
@@ -74,7 +74,11 @@
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.tar.xz/lib/sbi/openapi/model/traffic_descriptor_components.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/traffic_descriptor_components.c Changed
16
 
1
@@ -102,6 +102,14 @@
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.tar.xz/lib/sbi/openapi/model/tsctsf_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/tsctsf_info.c Changed
16
 
1
@@ -93,6 +93,14 @@
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.tar.xz/lib/sbi/openapi/model/uc_subscription_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/uc_subscription_data.c Changed
16
 
1
@@ -56,6 +56,14 @@
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.tar.xz/lib/sbi/openapi/model/udsf_info.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/udsf_info.c Changed
16
 
1
@@ -95,6 +95,14 @@
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.tar.xz/lib/sbi/openapi/model/ue_authentication_ctx.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ue_authentication_ctx.c Changed
16
 
1
@@ -98,6 +98,14 @@
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.tar.xz/lib/sbi/openapi/model/ue_context.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ue_context.c Changed
61
 
1
@@ -649,6 +649,14 @@
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
@@ -1162,6 +1170,14 @@
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
@@ -1184,6 +1200,14 @@
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
@@ -1289,6 +1313,14 @@
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.tar.xz/lib/sbi/openapi/model/ue_context_in_smf_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ue_context_in_smf_data.c Changed
16
 
1
@@ -72,6 +72,14 @@
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.tar.xz/lib/sbi/openapi/model/ue_policy_set.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ue_policy_set.c Changed
46
 
1
@@ -133,6 +133,14 @@
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
@@ -169,6 +177,14 @@
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
@@ -205,6 +221,14 @@
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.tar.xz/lib/sbi/openapi/model/ue_policy_set_patch.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ue_policy_set_patch.c Changed
16
 
1
@@ -85,6 +85,14 @@
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.tar.xz/lib/sbi/openapi/model/ue_reg_status_update_req_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ue_reg_status_update_req_data.c Changed
14
 
1
@@ -93,7 +93,11 @@
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.tar.xz/lib/sbi/openapi/model/ue_slice_mbr.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/ue_slice_mbr.c Changed
16
 
1
@@ -72,6 +72,14 @@
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.tar.xz/lib/sbi/openapi/model/uri_list.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/uri_list.c Changed
16
 
1
@@ -61,6 +61,14 @@
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.tar.xz/lib/sbi/openapi/model/usage_mon_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/usage_mon_data.c Changed
16
 
1
@@ -105,6 +105,14 @@
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.tar.xz/lib/sbi/openapi/model/usage_mon_data_limit.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/usage_mon_data_limit.c Changed
16
 
1
@@ -102,6 +102,14 @@
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.tar.xz/lib/sbi/openapi/model/vsmf_update_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/vsmf_update_data.c Changed
14
 
1
@@ -309,7 +309,11 @@
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.tar.xz/lib/sbi/openapi/model/vsmf_updated_data.c -> open5gs_2.6.4.tar.xz/lib/sbi/openapi/model/vsmf_updated_data.c Changed
14
 
1
@@ -332,7 +332,11 @@
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.tar.xz/lib/sbi/support/r17-20230301-openapitools-6.4.0/openapi-generator/templates/model-body.mustache -> open5gs_2.6.4.tar.xz/lib/sbi/support/r17-20230301-openapitools-6.4.0/openapi-generator/templates/model-body.mustache Changed
42
 
1
@@ -487,7 +487,11 @@
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
@@ -521,6 +525,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
@@ -543,7 +555,11 @@
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.tar.xz/meson.build -> open5gs_2.6.4.tar.xz/meson.build Changed
31
 
1
@@ -16,7 +16,7 @@
2
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
3
 
4
 project('open5gs', 'c', 'cpp',
5
-    version : '2.6.3',
6
+    version : '2.6.4',
7
     license : 'AGPL-3.0-or-later',
8
     meson_version : '>= 0.43.0',
9
     default_options : 
10
@@ -25,7 +25,7 @@
11
     ,
12
 )
13
 
14
-libogslib_version = '2.6.3'
15
+libogslib_version = '2.6.4'
16
 
17
 prefix = get_option('prefix')
18
 bindir = join_paths(prefix, get_option('bindir'))
19
@@ -131,6 +131,11 @@
20
     subdir('tests')
21
 endif
22
 
23
+# Check if the 'fuzzing' option is defined
24
+if get_option('fuzzing')
25
+    subdir('tests/fuzzing')
26
+endif
27
+
28
 message('\n'.join(
29
   '',
30
   '        prefix:                       ' + prefix,
31
open5gs_2.6.4.tar.xz/meson_options.txt Added
4
 
1
@@ -0,0 +1,2 @@
2
+option('fuzzing', type: 'boolean', value: false, description: 'Enable fuzzing tests')
3
+option('lib_fuzzing_engine', type : 'string', value : '', description : 'Path to the libFuzzer engine library')
4
open5gs_2.6.3.tar.xz/src/amf/context.c -> open5gs_2.6.4.tar.xz/src/amf/context.c Changed
11
 
1
@@ -2437,6 +2437,9 @@
2
 int amf_m_tmsi_free(amf_m_tmsi_t *m_tmsi)
3
 {
4
     ogs_assert(m_tmsi);
5
+
6
+    /* Restore M-TMSI by Issue #2307 */
7
+    *m_tmsi &= 0x003fffff;
8
     ogs_pool_free(&m_tmsi_pool, m_tmsi);
9
 
10
     return OGS_OK;
11
open5gs_2.6.3.tar.xz/src/amf/gmm-handler.c -> open5gs_2.6.4.tar.xz/src/amf/gmm-handler.c Changed
25
 
1
@@ -336,7 +336,7 @@
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
@@ -356,6 +356,14 @@
11
     update_type = &registration_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.tar.xz/src/amf/nnssf-handler.c -> open5gs_2.6.4.tar.xz/src/amf/nnssf-handler.c Changed
22
 
1
@@ -34,6 +34,7 @@
2
     OpenAPI_nsi_information_t *NsiInformation = NULL;
3
 
4
     amf_ue_t *amf_ue = NULL;
5
+    ran_ue_t *ran_ue = NULL;
6
 
7
     ogs_assert(sess);
8
     amf_ue = sess->amf_ue;
9
@@ -42,6 +43,12 @@
10
 
11
     ogs_assert(!SESSION_CONTEXT_IN_SMF(sess));
12
 
13
+    ran_ue = ran_ue_cycle(amf_ue->ran_ue);
14
+    if (!ran_ue) {
15
+        ogs_error("NG context has already been removed");
16
+        return OGS_ERROR;
17
+    }
18
+
19
     if (recvmsg->res_status != OGS_SBI_HTTP_STATUS_OK) {
20
         ogs_error("%s HTTP response error %d",
21
                 amf_ue->supi, recvmsg->res_status);
22
open5gs_2.6.3.tar.xz/src/amf/npcf-build.c -> open5gs_2.6.4.tar.xz/src/amf/npcf-build.c Changed
23
 
1
@@ -38,6 +38,7 @@
2
 
3
     ogs_assert(amf_ue);
4
     ogs_assert(amf_ue->supi);
5
+    ogs_assert(ran_ue_cycle(amf_ue->ran_ue));
6
 
7
     memset(&message, 0, sizeof(message));
8
     message.h.method = (char *)OGS_SBI_HTTP_METHOD_POST;
9
@@ -50,13 +51,6 @@
10
     memset(&ueLocation, 0, sizeof(ueLocation));
11
     memset(&UeAmbr, 0, sizeof(UeAmbr));
12
 
13
-    ran_ue_t *ran_ue = ran_ue_cycle(amf_ue->ran_ue);
14
-    if (!ran_ue) {
15
-        ogs_error("NG context has already been removed");
16
-        /* ran_ue is required for amf_ue_rat_type() */
17
-        goto end;
18
-    }
19
-
20
     server = ogs_list_first(&ogs_sbi_self()->server_list);
21
     if (!server) {
22
         ogs_error("No server");
23
open5gs_2.6.3.tar.xz/src/amf/nsmf-build.c -> open5gs_2.6.4.tar.xz/src/amf/nsmf-build.c Changed
23
 
1
@@ -42,6 +42,7 @@
2
     amf_ue = sess->amf_ue;
3
     ogs_assert(amf_ue);
4
     ogs_assert(amf_ue->nas.access_type);
5
+    ogs_assert(ran_ue_cycle(amf_ue->ran_ue));
6
 
7
     memset(&message, 0, sizeof(message));
8
     message.h.method = (char *)OGS_SBI_HTTP_METHOD_POST;
9
@@ -56,13 +57,6 @@
10
     memset(&header, 0, sizeof(header));
11
     memset(&ueLocation, 0, sizeof(ueLocation));
12
 
13
-    ran_ue_t *ran_ue = ran_ue_cycle(amf_ue->ran_ue);
14
-    if (!ran_ue) {
15
-        /* ran_ue is required for amf_ue_rat_type() */
16
-        ogs_error("NG context has already been removed");
17
-        goto end;
18
-    }
19
-
20
     SmContextCreateData.serving_nf_id =
21
         NF_INSTANCE_ID(ogs_sbi_self()->nf_instance);
22
     if (!SmContextCreateData.serving_nf_id) {
23
open5gs_2.6.3.tar.xz/src/amf/nsmf-handler.c -> open5gs_2.6.4.tar.xz/src/amf/nsmf-handler.c Changed
115
 
1
@@ -239,23 +239,29 @@
2
                             AMF_RELEASE_SM_CONTEXT_REGISTRATION_ACCEPT) &&
3
                         AMF_SESSION_SYNC_DONE(amf_ue,
4
                             AMF_UPDATE_SM_CONTEXT_REGISTRATION_REQUEST)) {
5
+                        ran_ue_t *ran_ue = ran_ue_cycle(amf_ue->ran_ue);
6
 
7
-                        if (!PCF_AM_POLICY_ASSOCIATED(amf_ue)) {
8
-                            r = amf_ue_sbi_discover_and_send(
9
-                                    OGS_SBI_SERVICE_TYPE_NPCF_AM_POLICY_CONTROL,
10
-                                    NULL,
11
-                                    amf_npcf_am_policy_control_build_create,
12
-                                    amf_ue, 0, NULL);
13
-                            ogs_expect(r == OGS_OK);
14
-                            ogs_assert(r != OGS_ERROR);
15
-                        } else {
16
-                            CLEAR_AMF_UE_TIMER(amf_ue->t3550);
17
-                            r = nas_5gs_send_registration_accept(amf_ue);
18
-                            ogs_expect(r == OGS_OK);
19
-                            ogs_assert(r != OGS_ERROR);
20
+                        if (ran_ue) {
21
+                            if (!PCF_AM_POLICY_ASSOCIATED(amf_ue)) {
22
+                                r = amf_ue_sbi_discover_and_send(
23
+                                        OGS_SBI_SERVICE_TYPE_NPCF_AM_POLICY_CONTROL,
24
+                                        NULL,
25
+                                        amf_npcf_am_policy_control_build_create,
26
+                                        amf_ue, 0, NULL);
27
+                                ogs_expect(r == OGS_OK);
28
+                                ogs_assert(r != OGS_ERROR);
29
+                            } else {
30
+                                CLEAR_AMF_UE_TIMER(amf_ue->t3550);
31
+                                r = nas_5gs_send_registration_accept(amf_ue);
32
+                                ogs_expect(r == OGS_OK);
33
+                                ogs_assert(r != OGS_ERROR);
34
 
35
-                            AMF_UE_CLEAR_N2_TRANSFER(
36
-                                    amf_ue, pdu_session_resource_setup_request);
37
+                                AMF_UE_CLEAR_N2_TRANSFER(amf_ue,
38
+                                        pdu_session_resource_setup_request);
39
+                            }
40
+                        } else {
41
+                            ogs_warn("%s RAN-NG Context has already "
42
+                                    "been removed", amf_ue->supi);
43
                         }
44
                     }
45
                 } else if (state == AMF_UPDATE_SM_CONTEXT_SERVICE_REQUEST) {
46
@@ -584,6 +590,7 @@
47
 
48
             } else if (state ==
49
                     AMF_UPDATE_SM_CONTEXT_DUPLICATED_PDU_SESSION_ID) {
50
+                ran_ue_t *ran_ue = ran_ue_cycle(amf_ue->ran_ue);
51
                 /*
52
                  * 1. PDU session establishment request
53
                  *    (Duplicated PDU Session ID)
54
@@ -594,12 +601,17 @@
55
                 ogs_warn("%s:%d Receive Update SM context"
56
                         "(DUPLICATED_PDU_SESSION_ID)", amf_ue->supi, sess->psi);
57
 
58
-                r = amf_sess_sbi_discover_and_send(
59
-                        OGS_SBI_SERVICE_TYPE_NSMF_PDUSESSION, NULL,
60
-                        amf_nsmf_pdusession_build_create_sm_context,
61
-                        sess, AMF_CREATE_SM_CONTEXT_NO_STATE, NULL);
62
-                ogs_expect(r == OGS_OK);
63
-                ogs_assert(r != OGS_ERROR);
64
+                if (ran_ue) {
65
+                    r = amf_sess_sbi_discover_and_send(
66
+                            OGS_SBI_SERVICE_TYPE_NSMF_PDUSESSION, NULL,
67
+                            amf_nsmf_pdusession_build_create_sm_context,
68
+                            sess, AMF_CREATE_SM_CONTEXT_NO_STATE, NULL);
69
+                    ogs_expect(r == OGS_OK);
70
+                    ogs_assert(r != OGS_ERROR);
71
+                } else {
72
+                    ogs_warn("%s RAN-NG Context has already been removed",
73
+                            amf_ue->supi);
74
+                }
75
 
76
             } else if (state == AMF_UPDATE_SM_CONTEXT_PATH_SWITCH_REQUEST) {
77
 
78
@@ -890,19 +902,25 @@
79
                 amf_ue, AMF_RELEASE_SM_CONTEXT_REGISTRATION_ACCEPT) &&
80
             AMF_SESSION_SYNC_DONE(
81
                 amf_ue, AMF_UPDATE_SM_CONTEXT_REGISTRATION_REQUEST)) {
82
+            ran_ue_t *ran_ue = ran_ue_cycle(amf_ue->ran_ue);
83
 
84
-            if (!PCF_AM_POLICY_ASSOCIATED(amf_ue)) {
85
-                r = amf_ue_sbi_discover_and_send(
86
-                        OGS_SBI_SERVICE_TYPE_NPCF_AM_POLICY_CONTROL, NULL,
87
-                        amf_npcf_am_policy_control_build_create,
88
-                        amf_ue, 0, NULL);
89
-                ogs_expect(r == OGS_OK);
90
-                ogs_assert(r != OGS_ERROR);
91
+            if (ran_ue) {
92
+                if (!PCF_AM_POLICY_ASSOCIATED(amf_ue)) {
93
+                    r = amf_ue_sbi_discover_and_send(
94
+                            OGS_SBI_SERVICE_TYPE_NPCF_AM_POLICY_CONTROL, NULL,
95
+                            amf_npcf_am_policy_control_build_create,
96
+                            amf_ue, 0, NULL);
97
+                    ogs_expect(r == OGS_OK);
98
+                    ogs_assert(r != OGS_ERROR);
99
+                } else {
100
+                    CLEAR_AMF_UE_TIMER(amf_ue->t3550);
101
+                    r = nas_5gs_send_registration_accept(amf_ue);
102
+                    ogs_expect(r == OGS_OK);
103
+                    ogs_assert(r != OGS_ERROR);
104
+                }
105
             } else {
106
-                CLEAR_AMF_UE_TIMER(amf_ue->t3550);
107
-                r = nas_5gs_send_registration_accept(amf_ue);
108
-                ogs_expect(r == OGS_OK);
109
-                ogs_assert(r != OGS_ERROR);
110
+                ogs_warn("%s RAN-NG Context has already been removed",
111
+                        amf_ue->supi);
112
             }
113
         }
114
 
115
open5gs_2.6.3.tar.xz/src/amf/nudm-handler.c -> open5gs_2.6.4.tar.xz/src/amf/nudm-handler.c Changed
38
 
1
@@ -26,20 +26,21 @@
2
         amf_ue_t *amf_ue, int state, ogs_sbi_message_t *recvmsg)
3
 {
4
     int i, r;
5
+    ran_ue_t *ran_ue = NULL;
6
 
7
     ogs_assert(amf_ue);
8
     ogs_assert(recvmsg);
9
 
10
+    ran_ue = ran_ue_cycle(amf_ue->ran_ue);
11
+    if (!ran_ue) {
12
+        /* ran_ue is required for amf_ue_is_rat_restricted() */
13
+        ogs_error("NG context has already been removed");
14
+        return OGS_ERROR;
15
+    }
16
+
17
     SWITCH(recvmsg->h.resource.component1)
18
     CASE(OGS_SBI_RESOURCE_NAME_AM_DATA)
19
 
20
-        ran_ue_t *ran_ue = ran_ue_cycle(amf_ue->ran_ue);
21
-        if (!ran_ue) {
22
-            /* ran_ue is required for amf_ue_is_rat_restricted() */
23
-            ogs_error("NG context has already been removed");
24
-            return OGS_ERROR;
25
-        }
26
-
27
         if (recvmsg->AccessAndMobilitySubscriptionData) {
28
             OpenAPI_list_t *gpsiList =
29
                 recvmsg->AccessAndMobilitySubscriptionData->gpsis;
30
@@ -242,7 +243,6 @@
31
         break;
32
 
33
     CASE(OGS_SBI_RESOURCE_NAME_UE_CONTEXT_IN_SMF_DATA)
34
-
35
         if (amf_ue->data_change_subscription_id) {
36
             /* we already have a SDM subscription to UDM; continue without
37
              * subscribing again */
38
open5gs_2.6.3.tar.xz/src/mme/mme-context.c -> open5gs_2.6.4.tar.xz/src/mme/mme-context.c Changed
200
 
1
@@ -1628,8 +1628,13 @@
2
                         int family = AF_UNSPEC;
3
                         int i, num = 0;
4
                         const char *hostnameOGS_MAX_NUM_OF_HOSTNAME;
5
-                        const char *apn = NULL;
6
                         uint16_t port = ogs_gtp_self()->gtpc_port;
7
+                        const char *apnOGS_MAX_NUM_OF_APN = {NULL,};
8
+                        uint8_t num_of_apn = 0;
9
+                        uint16_t tacOGS_MAX_NUM_OF_TAI = {0,};
10
+                        uint8_t num_of_tac = 0;
11
+                        uint32_t e_cell_idOGS_MAX_NUM_OF_CELL_ID = {0,};
12
+                        uint8_t num_of_e_cell_id = 0;
13
 
14
                         if (ogs_yaml_iter_type(&gtpc_array) ==
15
                                 YAML_MAPPING_NODE) {
16
@@ -1686,7 +1691,82 @@
17
                                 const char *v = ogs_yaml_iter_value(&gtpc_iter);
18
                                 if (v) port = atoi(v);
19
                             } else if (!strcmp(gtpc_key, "apn")) {
20
-                                apn = ogs_yaml_iter_value(&gtpc_iter);
21
+                                ogs_yaml_iter_t apn_iter;
22
+                                ogs_yaml_iter_recurse(&gtpc_iter, &apn_iter);
23
+                                ogs_assert(ogs_yaml_iter_type(&apn_iter) !=
24
+                                    YAML_MAPPING_NODE);
25
+
26
+                                do {
27
+                                    const char *v = NULL;
28
+
29
+                                    ogs_assert(num_of_apn <
30
+                                            OGS_MAX_NUM_OF_APN);
31
+                                    if (ogs_yaml_iter_type(&apn_iter) ==
32
+                                            YAML_SEQUENCE_NODE) {
33
+                                        if (!ogs_yaml_iter_next(&apn_iter))
34
+                                            break;
35
+                                    }
36
+
37
+                                    v = ogs_yaml_iter_value(&apn_iter);
38
+                                    if (v) {
39
+                                        apnnum_of_apn = v;
40
+                                        num_of_apn++;
41
+                                    }
42
+                                } while (
43
+                                    ogs_yaml_iter_type(&apn_iter) ==
44
+                                        YAML_SEQUENCE_NODE);
45
+                            } else if (!strcmp(gtpc_key, "tac")) {
46
+                                ogs_yaml_iter_t tac_iter;
47
+                                ogs_yaml_iter_recurse(&gtpc_iter, &tac_iter);
48
+                                ogs_assert(ogs_yaml_iter_type(&tac_iter) !=
49
+                                    YAML_MAPPING_NODE);
50
+
51
+                                do {
52
+                                    const char *v = NULL;
53
+
54
+                                    ogs_assert(num_of_tac <
55
+                                            OGS_MAX_NUM_OF_TAI);
56
+                                    if (ogs_yaml_iter_type(&tac_iter) ==
57
+                                            YAML_SEQUENCE_NODE) {
58
+                                        if (!ogs_yaml_iter_next(&tac_iter))
59
+                                            break;
60
+                                    }
61
+
62
+                                    v = ogs_yaml_iter_value(&tac_iter);
63
+                                    if (v) {
64
+                                        tacnum_of_tac = atoi(v);
65
+                                        num_of_tac++;
66
+                                    }
67
+                                } while (
68
+                                    ogs_yaml_iter_type(&tac_iter) ==
69
+                                        YAML_SEQUENCE_NODE);
70
+                            } else if (!strcmp(gtpc_key, "e_cell_id")) {
71
+                                ogs_yaml_iter_t e_cell_id_iter;
72
+                                ogs_yaml_iter_recurse(&gtpc_iter,
73
+                                        &e_cell_id_iter);
74
+                                ogs_assert(ogs_yaml_iter_type(&e_cell_id_iter)
75
+                                        != YAML_MAPPING_NODE);
76
+
77
+                                do {
78
+                                    const char *v = NULL;
79
+
80
+                                    ogs_assert(num_of_e_cell_id <
81
+                                            OGS_MAX_NUM_OF_CELL_ID);
82
+                                    if (ogs_yaml_iter_type(&e_cell_id_iter) ==
83
+                                            YAML_SEQUENCE_NODE) {
84
+                                        if (!ogs_yaml_iter_next(
85
+                                                    &e_cell_id_iter))
86
+                                            break;
87
+                                    }
88
+                                    v = ogs_yaml_iter_value(&e_cell_id_iter);
89
+                                    if (v) {
90
+                                        e_cell_idnum_of_e_cell_id
91
+                                            = ogs_uint64_from_string((char*)v);
92
+                                        num_of_e_cell_id++;
93
+                                    }
94
+                                } while (
95
+                                    ogs_yaml_iter_type(&e_cell_id_iter) ==
96
+                                        YAML_SEQUENCE_NODE);
97
                             } else
98
                                 ogs_warn("unknown key `%s`", gtpc_key);
99
                         }
100
@@ -1708,7 +1788,18 @@
101
                         pgw = mme_pgw_add(addr);
102
                         ogs_assert(pgw);
103
 
104
-                        pgw->apn = apn;
105
+                        pgw->num_of_apn = num_of_apn;
106
+                        if (num_of_apn != 0)
107
+                            memcpy(pgw->apn, apn, sizeof(pgw->apn));
108
+
109
+                        pgw->num_of_tac = num_of_tac;
110
+                        if (num_of_tac != 0)
111
+                            memcpy(pgw->tac, tac, sizeof(pgw->tac));
112
+
113
+                        pgw->num_of_e_cell_id = num_of_e_cell_id;
114
+                        if (num_of_e_cell_id != 0)
115
+                            memcpy(pgw->e_cell_id, e_cell_id,
116
+                                    sizeof(pgw->e_cell_id));
117
 
118
                     } while (ogs_yaml_iter_type(&gtpc_array) ==
119
                             YAML_SEQUENCE_NODE);
120
@@ -1881,8 +1972,33 @@
121
         mme_pgw_remove(pgw);
122
 }
123
 
124
-ogs_sockaddr_t *mme_pgw_addr_find_by_apn(
125
-        ogs_list_t *list, int family, char *apn)
126
+static bool compare_apn_enb_info(
127
+    mme_pgw_t *pgw, mme_sess_t *sess)
128
+{
129
+    mme_ue_t *mme_ue = NULL;
130
+    int i;
131
+
132
+    ogs_assert(pgw);
133
+    ogs_assert(sess);
134
+    ogs_assert(sess->session);
135
+    ogs_assert(sess->session->name);
136
+    mme_ue = sess->mme_ue;
137
+    ogs_assert(mme_ue);
138
+
139
+    for (i = 0; i < pgw->num_of_apn; i++)
140
+      if (!ogs_strcasecmp(pgw->apni, sess->session->name)) return true;
141
+
142
+    for (i = 0; i < pgw->num_of_e_cell_id; i++)
143
+      if (pgw->e_cell_idi == mme_ue->e_cgi.cell_id) return true;
144
+
145
+    for (i = 0; i < pgw->num_of_tac; i++)
146
+      if (pgw->taci == mme_ue->tai.tac) return true;
147
+
148
+    return false;
149
+}
150
+
151
+ogs_sockaddr_t *mme_pgw_addr_find_by_apn_enb(
152
+    ogs_list_t *list, int family, mme_sess_t *sess)
153
 {
154
     mme_pgw_t *pgw = NULL;
155
     ogs_assert(list);
156
@@ -1893,7 +2009,7 @@
157
 
158
         while (addr) {
159
             if (addr->ogs_sa_family == family &&
160
-                (!apn || (pgw->apn && !ogs_strcasecmp(apn, pgw->apn)))) {
161
+                (!sess || compare_apn_enb_info(pgw, sess))) {
162
                 return addr;
163
             }
164
             addr = addr->next;
165
@@ -3480,8 +3596,9 @@
166
     pti = message->esm.h.procedure_transaction_identity;
167
     ebi = message->esm.h.eps_bearer_identity;
168
 
169
-    ogs_debug("mme_bearer_find_or_add_by_message() PTI:%d, EBI:%d",
170
-            pti, ebi);
171
+    ogs_debug("mme_bearer_find_or_add_by_message() : "
172
+            "ESM message type:%d, PTI:%d, EBI:%d",
173
+            message->esm.h.message_type, pti, ebi);
174
 
175
     if (ebi != OGS_NAS_EPS_BEARER_IDENTITY_UNASSIGNED) {
176
         bearer = mme_bearer_find_by_ue_ebi(mme_ue, ebi);
177
@@ -3620,7 +3737,11 @@
178
     }
179
 
180
     bearer = mme_default_bearer_in_sess(sess);
181
-    ogs_assert(bearer);
182
+    if (!bearer) {
183
+        ogs_error("No Bearer(%d) : ESM message type:%d, PTI:%d, EBI:%d",
184
+                mme_sess_count(mme_ue), message->esm.h.message_type, pti, ebi);
185
+        ogs_assert_if_reached();
186
+    }
187
 
188
     return bearer;
189
 }
190
@@ -3835,6 +3956,9 @@
191
 int mme_m_tmsi_free(mme_m_tmsi_t *m_tmsi)
192
 {
193
     ogs_assert(m_tmsi);
194
+
195
+    /* Restore M-TMSI by Issue #2307 */
196
+    *m_tmsi &= 0x003fffff;
197
     ogs_pool_free(&m_tmsi_pool, m_tmsi);
198
 
199
     return OGS_OK;
200
open5gs_2.6.3.tar.xz/src/mme/mme-context.h -> open5gs_2.6.4.tar.xz/src/mme/mme-context.h Changed
48
 
1
@@ -176,7 +176,13 @@
2
     ogs_lnode_t     lnode;
3
 
4
     ogs_sockaddr_t  *sa_list;
5
-    const char      *apn;
6
+
7
+    const char      *apnOGS_MAX_NUM_OF_APN;
8
+    uint8_t         num_of_apn;
9
+    uint16_t        tacOGS_MAX_NUM_OF_TAI;
10
+    uint8_t         num_of_tac;
11
+    uint32_t        e_cell_idOGS_MAX_NUM_OF_CELL_ID;
12
+    uint8_t         num_of_e_cell_id;
13
 } mme_pgw_t;
14
 
15
 #define MME_SGSAP_IS_CONNECTED(__mME) \
16
@@ -613,6 +619,20 @@
17
         ((__mME)->sgw_ue)->sgw_s11_teid = 0; \
18
     } while(0)
19
 
20
+#define MME_SESS_CLEAR(__sESS) \
21
+    do { \
22
+        mme_ue_t *mme_ue = NULL; \
23
+        ogs_assert(__sESS); \
24
+        mme_ue = __sESS->mme_ue; \
25
+        ogs_assert(mme_ue); \
26
+        ogs_info("Removed Session: UE IMSI:%s APN:%s", \
27
+                mme_ue->imsi_bcd, \
28
+                sess->session ? sess->session->name : "Unknown"); \
29
+        if (mme_sess_count(mme_ue) == 1) /* Last Session */ \
30
+            CLEAR_SESSION_CONTEXT(mme_ue); \
31
+        mme_sess_remove(sess); \
32
+    } while(0)
33
+
34
 #define ACTIVE_EPS_BEARERS_IS_AVAIABLE(__mME) \
35
     (mme_ue_have_active_eps_bearers(__mME))
36
 #define MME_SESSION_RELEASE_PENDING(__mME) \
37
@@ -764,8 +784,8 @@
38
 mme_pgw_t *mme_pgw_add(ogs_sockaddr_t *addr);
39
 void mme_pgw_remove(mme_pgw_t *pgw);
40
 void mme_pgw_remove_all(void);
41
-ogs_sockaddr_t *mme_pgw_addr_find_by_apn(
42
-        ogs_list_t *list, int family, char *apn);
43
+ogs_sockaddr_t *mme_pgw_addr_find_by_apn_enb(
44
+        ogs_list_t *list, int family, mme_sess_t *sess);
45
 
46
 mme_vlr_t *mme_vlr_add(ogs_sockaddr_t *sa_list, ogs_sockopt_t *option);
47
 void mme_vlr_remove(mme_vlr_t *vlr);
48
open5gs_2.6.3.tar.xz/src/mme/mme-gtp-path.c -> open5gs_2.6.4.tar.xz/src/mme/mme-gtp-path.c Changed
22
 
1
@@ -179,9 +179,9 @@
2
 
3
     OGS_SETUP_GTPC_SERVER;
4
 
5
-    mme_self()->pgw_addr = mme_pgw_addr_find_by_apn(
6
+    mme_self()->pgw_addr = mme_pgw_addr_find_by_apn_enb(
7
             &mme_self()->pgw_list, AF_INET, NULL);
8
-    mme_self()->pgw_addr6 = mme_pgw_addr_find_by_apn(
9
+    mme_self()->pgw_addr6 = mme_pgw_addr_find_by_apn_enb(
10
             &mme_self()->pgw_list, AF_INET6, NULL);
11
     ogs_assert(mme_self()->pgw_addr || mme_self()->pgw_addr6);
12
 
13
@@ -336,7 +336,7 @@
14
         if (MME_HAVE_SGW_S1U_PATH(sess)) {
15
             mme_gtp_send_delete_session_request(sgw_ue, sess, action);
16
         } else {
17
-            mme_sess_remove(sess);
18
+            MME_SESS_CLEAR(sess);
19
         }
20
     }
21
 }
22
open5gs_2.6.3.tar.xz/src/mme/mme-s11-build.c -> open5gs_2.6.4.tar.xz/src/mme/mme-s11-build.c Changed
16
 
1
@@ -145,10 +145,10 @@
2
         ogs_sockaddr_t *pgw_addr = NULL;
3
         ogs_sockaddr_t *pgw_addr6 = NULL;
4
 
5
-        pgw_addr = mme_pgw_addr_find_by_apn(
6
-                &mme_self()->pgw_list, AF_INET, session->name);
7
-        pgw_addr6 = mme_pgw_addr_find_by_apn(
8
-                &mme_self()->pgw_list, AF_INET6, session->name);
9
+        pgw_addr = mme_pgw_addr_find_by_apn_enb(
10
+                &mme_self()->pgw_list, AF_INET, sess);
11
+        pgw_addr6 = mme_pgw_addr_find_by_apn_enb(
12
+                &mme_self()->pgw_list, AF_INET6, sess);
13
         if (!pgw_addr && !pgw_addr6) {
14
             pgw_addr = mme_self()->pgw_addr;
15
             pgw_addr6 = mme_self()->pgw_addr6;
16
open5gs_2.6.3.tar.xz/src/mme/mme-s11-handler.c -> open5gs_2.6.4.tar.xz/src/mme/mme-s11-handler.c Changed
13
 
1
@@ -745,10 +745,7 @@
2
         ogs_assert_if_reached();
3
     }
4
 
5
-    if (mme_sess_count(mme_ue) == 1) /* Last Session */
6
-        CLEAR_SESSION_CONTEXT(mme_ue);
7
-
8
-    mme_sess_remove(sess);
9
+    MME_SESS_CLEAR(sess);
10
 }
11
 
12
 void mme_s11_handle_create_bearer_request(
13
open5gs_2.6.3.tar.xz/src/mme/mme-sm.c -> open5gs_2.6.4.tar.xz/src/mme/mme-sm.c Changed
28
 
1
@@ -365,7 +365,7 @@
2
             if (default_bearer->ebi == bearer->ebi) {
3
                 /* if the bearer is a default bearer,
4
                  * remove all session context linked the default bearer */
5
-                mme_sess_remove(sess);
6
+                MME_SESS_CLEAR(sess);
7
             } else {
8
                 /* if the bearer is not a default bearer,
9
                  * just remove the bearer context */
10
@@ -374,7 +374,7 @@
11
 
12
         } else if (OGS_FSM_CHECK(&bearer->sm, esm_state_pdn_did_disconnect)) {
13
             ogs_assert(default_bearer->ebi == bearer->ebi);
14
-            mme_sess_remove(sess);
15
+            MME_SESS_CLEAR(sess);
16
 
17
         } else if (OGS_FSM_CHECK(&bearer->sm, esm_state_exception)) {
18
 
19
@@ -386,7 +386,7 @@
20
              *
21
              * Just we'll remove MME session context.
22
              */
23
-            mme_sess_remove(sess);
24
+            MME_SESS_CLEAR(sess);
25
         }
26
 
27
         ogs_pkbuf_free(pkbuf);
28
open5gs_2.6.3.tar.xz/src/scp/context.c -> open5gs_2.6.4.tar.xz/src/scp/context.c Changed
148
 
1
@@ -100,6 +100,146 @@
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
open5gs_2.6.3.tar.xz/src/sgwu/sxa-handler.c -> open5gs_2.6.4.tar.xz/src/sgwu/sxa-handler.c Changed
27
 
1
@@ -103,7 +103,11 @@
2
 
3
     /* Setup GTP Node */
4
     ogs_list_for_each(&sess->pfcp.far_list, far) {
5
-        ogs_assert(OGS_ERROR != ogs_pfcp_setup_far_gtpu_node(far));
6
+        if (OGS_ERROR == ogs_pfcp_setup_far_gtpu_node(far)) {
7
+            ogs_fatal("CHECK CONFIGURATION: sgwu.gtpu");
8
+            ogs_fatal("ogs_pfcp_setup_far_gtpu_node() failed");
9
+            goto cleanup;
10
+        }
11
         if (far->gnode)
12
             ogs_pfcp_far_f_teid_hash_set(far);
13
     }
14
@@ -268,7 +272,11 @@
15
 
16
     /* Setup GTP Node */
17
     ogs_list_for_each(&sess->pfcp.far_list, far) {
18
-        ogs_assert(OGS_ERROR != ogs_pfcp_setup_far_gtpu_node(far));
19
+        if (OGS_ERROR == ogs_pfcp_setup_far_gtpu_node(far)) {
20
+            ogs_fatal("CHECK CONFIGURATION: sgwu.gtpu");
21
+            ogs_fatal("ogs_pfcp_setup_far_gtpu_node() failed");
22
+            goto cleanup;
23
+        }
24
         if (far->gnode)
25
             ogs_pfcp_far_f_teid_hash_set(far);
26
     }
27
open5gs_2.6.3.tar.xz/src/smf/context.h -> open5gs_2.6.4.tar.xz/src/smf/context.h Changed
9
 
1
@@ -365,7 +365,6 @@
2
 
3
     /* Paging */
4
     struct {
5
-        bool ue_requested_pdu_session_establishment_done;
6
         char *n1n2message_location;
7
     } paging;
8
 
9
open5gs_2.6.3.tar.xz/src/smf/n4-handler.c -> open5gs_2.6.4.tar.xz/src/smf/n4-handler.c Changed
58
 
1
@@ -396,8 +396,6 @@
2
                     sess, stream, OpenAPI_ho_state_COMPLETED);
3
 
4
         } else {
5
-            sess->paging.ue_requested_pdu_session_establishment_done = true;
6
-
7
             if (sess->up_cnx_state == OpenAPI_up_cnx_state_ACTIVATING) {
8
                 sess->up_cnx_state = OpenAPI_up_cnx_state_ACTIVATED;
9
                 smf_sbi_send_sm_context_updated_data_up_cnx_state(
10
@@ -1195,6 +1193,7 @@
11
         ogs_pfcp_downlink_data_service_information_t *info = NULL;
12
         uint8_t paging_policy_indication_value = 0;
13
         uint8_t qfi = 0;
14
+        smf_n1_n2_message_transfer_param_t param;
15
 
16
         if (pfcp_req->downlink_data_report.presence) {
17
             if (pfcp_req->downlink_data_report.
18
@@ -1259,9 +1258,21 @@
19
             return;
20
         }
21
 
22
-        if (sess->paging.ue_requested_pdu_session_establishment_done == true) {
23
-            smf_n1_n2_message_transfer_param_t param;
24
-
25
+        switch (sess->up_cnx_state) {
26
+        case OpenAPI_up_cnx_state_NULL:
27
+            /* UE Requested PDU Session is NOT established */
28
+            break;
29
+        case OpenAPI_up_cnx_state_ACTIVATED:
30
+            ogs_error("%s:%s PDU Session had already been ACTIVATED",
31
+                smf_ue->imsi_bcd, sess->session.name);
32
+            break;
33
+        case OpenAPI_up_cnx_state_ACTIVATING:
34
+#if OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING == 1
35
+            ogs_warn("%s:%s UE is being triggering Service Request",
36
+                smf_ue->imsi_bcd, sess->session.name);
37
+            break;
38
+#endif
39
+        case OpenAPI_up_cnx_state_DEACTIVATED:
40
             memset(&param, 0, sizeof(param));
41
             param.state = SMF_NETWORK_TRIGGERED_SERVICE_REQUEST;
42
             param.n2smbuf =
43
@@ -1271,6 +1282,14 @@
44
             param.n1n2_failure_txf_notif_uri = true;
45
 
46
             smf_namf_comm_send_n1_n2_message_transfer(sess, &param);
47
+            break;
48
+        case OpenAPI_up_cnx_state_SUSPENDED:
49
+            ogs_error("%s:%s PDU Session had been SUSPENDED",
50
+                smf_ue->imsi_bcd, sess->session.name);
51
+            break;
52
+        default:
53
+            ogs_error("Invalid UpCnxState%d", sess->up_cnx_state);
54
+            break;
55
         }
56
     }
57
 
58
open5gs_2.6.3.tar.xz/src/upf/n4-handler.c -> open5gs_2.6.4.tar.xz/src/upf/n4-handler.c Changed
46
 
1
@@ -131,6 +131,17 @@
2
     if (cause_value != OGS_PFCP_CAUSE_REQUEST_ACCEPTED)
3
         goto cleanup;
4
 
5
+    /* Setup GTP Node */
6
+    ogs_list_for_each(&sess->pfcp.far_list, far) {
7
+        if (OGS_ERROR == ogs_pfcp_setup_far_gtpu_node(far)) {
8
+            ogs_fatal("CHECK CONFIGURATION: upf.gtpu");
9
+            ogs_fatal("ogs_pfcp_setup_far_gtpu_node() failed");
10
+            goto cleanup;
11
+        }
12
+        if (far->gnode)
13
+            ogs_pfcp_far_f_teid_hash_set(far);
14
+    }
15
+
16
     /* PFCPSEReq-Flags */
17
     if (sereq_flags.restoration_indication == 1) {
18
         for (i = 0; i < num_of_created_pdr; i++) {
19
@@ -143,13 +154,6 @@
20
         restoration_indication = true;
21
     }
22
 
23
-    /* Setup GTP Node */
24
-    ogs_list_for_each(&sess->pfcp.far_list, far) {
25
-        ogs_assert(OGS_ERROR != ogs_pfcp_setup_far_gtpu_node(far));
26
-        if (far->gnode)
27
-            ogs_pfcp_far_f_teid_hash_set(far);
28
-    }
29
-
30
     for (i = 0; i < num_of_created_pdr; i++) {
31
         pdr = created_pdri;
32
         ogs_assert(pdr);
33
@@ -372,7 +376,11 @@
34
 
35
     /* Setup GTP Node */
36
     ogs_list_for_each(&sess->pfcp.far_list, far) {
37
-        ogs_assert(OGS_ERROR != ogs_pfcp_setup_far_gtpu_node(far));
38
+        if (OGS_ERROR == ogs_pfcp_setup_far_gtpu_node(far)) {
39
+            ogs_fatal("CHECK CONFIGURATION: upf.gtpu");
40
+            ogs_fatal("ogs_pfcp_setup_far_gtpu_node() failed");
41
+            goto cleanup;
42
+        }
43
         if (far->gnode)
44
             ogs_pfcp_far_f_teid_hash_set(far);
45
     }
46
open5gs_2.6.3.tar.xz/tests/common/ngap-build.c -> open5gs_2.6.4.tar.xz/tests/common/ngap-build.c Changed
54
 
1
@@ -1,5 +1,5 @@
2
 /*
3
- * Copyright (C) 2019,2020 by Sukchan Lee <acetcom@gmail.com>
4
+ * Copyright (C) 2019-2023 by Sukchan Lee <acetcom@gmail.com>
5
  *
6
  * This file is part of Open5GS.
7
  *
8
@@ -2595,3 +2595,45 @@
9
     return ogs_asn_encode(
10
             &asn_DEF_NGAP_HandoverRequestAcknowledgeTransfer, &message);
11
 }
12
+
13
+#define TEST_NGAP_MAX_MESSAGE 64
14
+
15
+ogs_pkbuf_t *test_ngap_build_amf_configuration_ack(int i)
16
+{
17
+    ogs_pkbuf_t *pkbuf = NULL;
18
+    const char *payloadTEST_NGAP_MAX_MESSAGE = {
19
+        "2000 000f000002000a40 0200010055400200 01",
20
+        "",
21
+        "",
22
+
23
+        "",
24
+        "",
25
+        "",
26
+
27
+        "",
28
+        "",
29
+        "",
30
+
31
+    };
32
+    uint16_t lenTEST_NGAP_MAX_MESSAGE = {
33
+        19,
34
+        0,
35
+        0,
36
+
37
+        0,
38
+        0,
39
+        0,
40
+
41
+        0,
42
+        0,
43
+        0,
44
+    };
45
+    char hexbufOGS_HUGE_LEN;
46
+
47
+    pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
48
+    ogs_assert(pkbuf);
49
+    ogs_pkbuf_put_data(pkbuf,
50
+        ogs_hex_from_string(payloadi, hexbuf, sizeof(hexbuf)), leni);
51
+
52
+    return pkbuf;
53
+}
54
open5gs_2.6.3.tar.xz/tests/common/ngap-build.h -> open5gs_2.6.4.tar.xz/tests/common/ngap-build.h Changed
17
 
1
@@ -1,5 +1,5 @@
2
 /*
3
- * Copyright (C) 2019,2020 by Sukchan Lee <acetcom@gmail.com>
4
+ * Copyright (C) 2019-2023 by Sukchan Lee <acetcom@gmail.com>
5
  *
6
  * This file is part of Open5GS.
7
  *
8
@@ -79,6 +79,8 @@
9
 ogs_pkbuf_t *testngap_build_handover_cancel(test_ue_t *test_ue,
10
         NGAP_Cause_PR group, long cause);
11
 
12
+ogs_pkbuf_t *test_ngap_build_amf_configuration_ack(int i);
13
+
14
 #ifdef __cplusplus
15
 }
16
 #endif
17
open5gs_2.6.4.tar.xz/tests/fuzzing Added
2
 
1
+(directory)
2
open5gs_2.6.4.tar.xz/tests/fuzzing/fuzzing.h Added
36
 
1
@@ -0,0 +1,34 @@
2
+/*
3
+ * Copyright (C) 2019-2023 by Sukchan Lee <acetcom@gmail.com>
4
+ *
5
+ * This file is part of Open5GS.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+ * GNU General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU General Public License
18
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+#include "ogs-core.h"
21
+#include "core/abts.h"
22
+
23
+static int initialized = 0;
24
+
25
+void initialize(void) {
26
+
27
+    ogs_pkbuf_config_t config;
28
+
29
+    ogs_core_initialize();
30
+
31
+    ogs_pkbuf_default_init(&config);
32
+    ogs_pkbuf_default_create(&config);
33
+
34
+    initialized = 1;
35
+}
36
open5gs_2.6.4.tar.xz/tests/fuzzing/gtp-message-fuzz.c Added
60
 
1
@@ -0,0 +1,58 @@
2
+/*
3
+ * Copyright (C) 2019-2023 by Sukchan Lee <acetcom@gmail.com>
4
+ *
5
+ * This file is part of Open5GS.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+ * GNU General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU General Public License
18
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
21
+#include <stdio.h>
22
+#include <stdint.h>
23
+
24
+#include "fuzzing.h"
25
+#include "ogs-gtp.h"
26
+
27
+#define kMinInputLength 5
28
+#define kMaxInputLength 1024
29
+
30
+extern int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) 
31
+{ /* open5gs/tests/unit/gtp-message-test.c */
32
+
33
+    if (Size < kMinInputLength || Size > kMaxInputLength) {
34
+        return 1;
35
+    }
36
+
37
+    if (!initialized) {
38
+        initialize();
39
+        ogs_log_install_domain(&__ogs_gtp_domain, "gtp", OGS_LOG_NONE);
40
+        ogs_log_install_domain(&__ogs_tlv_domain, "tlv", OGS_LOG_NONE);
41
+    }
42
+
43
+    int result;
44
+    ogs_pkbuf_t *pkbuf;
45
+    ogs_gtp2_create_session_request_t req;
46
+
47
+    pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
48
+    if (pkbuf == NULL) {
49
+        return 1;
50
+    }
51
+
52
+    ogs_pkbuf_put_data(pkbuf, Data, Size);
53
+
54
+    ogs_tlv_parse_msg(&req, &ogs_gtp2_tlv_desc_create_session_request, pkbuf, OGS_TLV_MODE_T1_L2_I1);
55
+
56
+    ogs_pkbuf_free(pkbuf);
57
+
58
+    return 0;
59
+}
60
open5gs_2.6.4.tar.xz/tests/fuzzing/gtp_message_fuzz_seed_corpus.zip Added
open5gs_2.6.4.tar.xz/tests/fuzzing/meson.build Added
43
 
1
@@ -0,0 +1,41 @@
2
+# Copyright (C) 2019 by Sukchan Lee <acetcom@gmail.com>
3
+
4
+# This file is part of Open5GS.
5
+
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU Affero General Public License as published by
8
+# the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+# GNU General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU General Public License
17
+# along with this program.  If not, see <https://www.gnu.org/licenses/>.
18
+
19
+
20
+# Get the lib_fuzzing_engine build option.
21
+lib_fuzzing_engine = get_option('lib_fuzzing_engine')
22
+
23
+# All fuzzer sources.
24
+gtp_message_source = files('gtp-message-fuzz.c')
25
+nas_message_source = files('nas-message-fuzz.c')
26
+
27
+# Build all executable 
28
+executable(
29
+    'gtp_message_fuzz',
30
+    sources : gtp_message_source,
31
+    c_args : testunit_core_cc_flags, sbi_cc_flags,
32
+    dependencies : libgtp_dep,
33
+    link_args: lib_fuzzing_engine
34
+)
35
+
36
+executable(
37
+    'nas_message_fuzz',
38
+    sources : nas_message_source,
39
+    c_args : testunit_core_cc_flags, sbi_cc_flags,
40
+    dependencies : libnas_eps_dep,
41
+    link_args: lib_fuzzing_engine
42
+)
43
open5gs_2.6.4.tar.xz/tests/fuzzing/nas-message-fuzz.c Added
59
 
1
@@ -0,0 +1,57 @@
2
+/*
3
+ * Copyright (C) 2019-2023 by Sukchan Lee <acetcom@gmail.com>
4
+ *
5
+ * This file is part of Open5GS.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+ * GNU General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU General Public License
18
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+
21
+#include <stdio.h>
22
+#include <stdint.h>
23
+
24
+#include "fuzzing.h"
25
+#include "ogs-nas-eps.h"
26
+
27
+#define kMinInputLength 5
28
+#define kMaxInputLength 1024
29
+
30
+extern int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) 
31
+{ /* open5gs/tests/unit/nas-message-test.c */
32
+
33
+    if (Size < kMinInputLength || Size > kMaxInputLength) {
34
+        return 1;
35
+    }
36
+
37
+    if (!initialized) {
38
+        initialize();
39
+        ogs_log_install_domain(&__ogs_nas_domain, "nas", OGS_LOG_NONE);
40
+    }
41
+
42
+    int result;
43
+    ogs_pkbuf_t *pkbuf;
44
+    ogs_nas_eps_message_t message;
45
+
46
+    pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
47
+    if (pkbuf == NULL) {
48
+        return 1;
49
+    }
50
+
51
+    ogs_pkbuf_put_data(pkbuf, Data, Size);
52
+
53
+    result = ogs_nas_emm_decode(&message, pkbuf);
54
+
55
+    ogs_pkbuf_free(pkbuf);
56
+
57
+    return result;
58
+}
59
open5gs_2.6.4.tar.xz/tests/fuzzing/nas_message_fuzz_seed_corpus.zip Added
open5gs_2.6.3.tar.xz/tests/registration/paging-test.c -> open5gs_2.6.4.tar.xz/tests/registration/paging-test.c Changed
141
 
1
@@ -858,6 +858,7 @@
2
     rv = testgnb_ngap_send(ngap, sendbuf);
3
     ABTS_INT_EQUAL(tc, OGS_OK, rv);
4
 
5
+#if OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING == 0
6
     /* Receive PDUSessionResourceSetupRequest +
7
      * DL NAS transport +
8
      * PDU session establishment accept */
9
@@ -867,12 +868,14 @@
10
     ABTS_INT_EQUAL(tc,
11
             NGAP_ProcedureCode_id_PDUSessionResourceSetup,
12
             test_ue->ngap_procedure_code);
13
+#endif
14
 
15
     /* Receive GTP-U ICMP Packet */
16
     recvbuf = testgnb_gtpu_read(gtpu);
17
     ABTS_PTR_NOTNULL(tc, recvbuf);
18
     ogs_pkbuf_free(recvbuf);
19
 
20
+#if OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING == 0
21
     /* Send PDUSessionResourceSetupResponse(Unsuccessful) */
22
     sendbuf = testngap_sess_build_pdu_session_resource_failed_to_setup(
23
             sess,
24
@@ -881,6 +884,7 @@
25
     ABTS_PTR_NOTNULL(tc, sendbuf);
26
     rv = testgnb_ngap_send(ngap, sendbuf);
27
     ABTS_INT_EQUAL(tc, OGS_OK, rv);
28
+#endif
29
 
30
     /* Send GTP-U ICMP Packet */
31
     rv = test_gtpu_send_ping(gtpu, qos_flow, TEST_PING_IPV4);
32
@@ -891,6 +895,16 @@
33
     ABTS_PTR_NOTNULL(tc, recvbuf);
34
     ogs_pkbuf_free(recvbuf);
35
 
36
+#if OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING == 1
37
+    /* Send UEContextReleaseRequest */
38
+    sendbuf = testngap_build_ue_context_release_request(test_ue,
39
+            NGAP_Cause_PR_radioNetwork, NGAP_CauseRadioNetwork_user_inactivity,
40
+            true);
41
+    ABTS_PTR_NOTNULL(tc, sendbuf);
42
+    rv = testgnb_ngap_send(ngap, sendbuf);
43
+    ABTS_INT_EQUAL(tc, OGS_OK, rv);
44
+#endif
45
+
46
     /* Receive UEContextReleaseCommand */
47
     recvbuf = testgnb_ngap_read(ngap);
48
     ABTS_PTR_NOTNULL(tc, recvbuf);
49
@@ -1867,6 +1881,7 @@
50
     ABTS_PTR_NOTNULL(tc, recvbuf);
51
     ogs_pkbuf_free(recvbuf);
52
 
53
+#if OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING == 0
54
     /* Receive PDUSessionResourceSetupRequest */
55
     recvbuf = testgnb_ngap_read(ngap);
56
     ABTS_PTR_NOTNULL(tc, recvbuf);
57
@@ -1880,6 +1895,7 @@
58
     ABTS_PTR_NOTNULL(tc, sendbuf);
59
     rv = testgnb_ngap_send(ngap, sendbuf);
60
     ABTS_INT_EQUAL(tc, OGS_OK, rv);
61
+#endif
62
 
63
     /* Send GTP-U ICMP Packet */
64
     rv = test_gtpu_send_ping(gtpu, qos_flow, TEST_PING_IPV4);
65
@@ -2304,6 +2320,7 @@
66
     ABTS_PTR_NOTNULL(tc, recvbuf);
67
     ogs_pkbuf_free(recvbuf);
68
 
69
+#if OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING == 0
70
     /* Receive PDUSessionResourceSetupRequest */
71
     recvbuf = testgnb_ngap_read(ngap);
72
     ABTS_PTR_NOTNULL(tc, recvbuf);
73
@@ -2317,6 +2334,7 @@
74
     ABTS_PTR_NOTNULL(tc, sendbuf);
75
     rv = testgnb_ngap_send(ngap, sendbuf);
76
     ABTS_INT_EQUAL(tc, OGS_OK, rv);
77
+#endif
78
 
79
     /* Send GTP-U ICMP Packet */
80
     rv = test_gtpu_send_ping(gtpu, qos_flow, TEST_PING_IPV4);
81
@@ -2742,6 +2760,7 @@
82
     rv = test_gtpu_send_ping(gtpu, qos_flow, TEST_PING_IPV4);
83
     ABTS_INT_EQUAL(tc, OGS_OK, rv);
84
 
85
+#if OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING == 0
86
     /* Receive PDUSessionResourceSetupRequest */
87
     recvbuf = testgnb_ngap_read(ngap);
88
     ABTS_PTR_NOTNULL(tc, recvbuf);
89
@@ -2749,6 +2768,7 @@
90
     ABTS_INT_EQUAL(tc,
91
             NGAP_ProcedureCode_id_PDUSessionResourceSetup,
92
             test_ue->ngap_procedure_code);
93
+#endif
94
 
95
     /* Send InitialContextSetupResponse */
96
     sendbuf = testngap_build_initial_context_setup_response(test_ue, true);
97
@@ -2756,11 +2776,13 @@
98
     rv = testgnb_ngap_send(ngap, sendbuf);
99
     ABTS_INT_EQUAL(tc, OGS_OK, rv);
100
 
101
+#if OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING == 0
102
     /* Send PDUSessionResourceSetupResponse */
103
     sendbuf = testngap_ue_build_pdu_session_resource_setup_response(test_ue);
104
     ABTS_PTR_NOTNULL(tc, sendbuf);
105
     rv = testgnb_ngap_send(ngap, sendbuf);
106
     ABTS_INT_EQUAL(tc, OGS_OK, rv);
107
+#endif
108
 
109
     /* Receive GTP-U ICMP Packet */
110
     recvbuf = testgnb_gtpu_read(gtpu);
111
@@ -3171,6 +3193,7 @@
112
     rv = test_gtpu_send_ping(gtpu, qos_flow, TEST_PING_IPV4);
113
     ABTS_INT_EQUAL(tc, OGS_OK, rv);
114
 
115
+#if OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING == 0
116
     /* Receive PDUSessionResourceSetupRequest */
117
     recvbuf = testgnb_ngap_read(ngap);
118
     ABTS_PTR_NOTNULL(tc, recvbuf);
119
@@ -3178,6 +3201,7 @@
120
     ABTS_INT_EQUAL(tc,
121
             NGAP_ProcedureCode_id_PDUSessionResourceSetup,
122
             test_ue->ngap_procedure_code);
123
+#endif
124
 
125
     /* Send InitialContextSetupResponse */
126
     sendbuf = testngap_build_initial_context_setup_response(test_ue, true);
127
@@ -3185,11 +3209,13 @@
128
     rv = testgnb_ngap_send(ngap, sendbuf);
129
     ABTS_INT_EQUAL(tc, OGS_OK, rv);
130
 
131
+#if OGS_SBI_DISABLE_NETWORK_SERVICE_REQUEST_WHILE_ACTIVATING == 0
132
     /* Send PDUSessionResourceSetupResponse */
133
     sendbuf = testngap_sess_build_pdu_session_resource_setup_response(sess);
134
     ABTS_PTR_NOTNULL(tc, sendbuf);
135
     rv = testgnb_ngap_send(ngap, sendbuf);
136
     ABTS_INT_EQUAL(tc, OGS_OK, rv);
137
+#endif
138
 
139
     /* Receive GTP-U ICMP Packet */
140
     recvbuf = testgnb_gtpu_read(gtpu);
141