mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
[SBI] Crash occurs when ENUM in the MAP (#2103)
This commit is contained in:
parent
ce668c556c
commit
969c116e77
1097 changed files with 266728 additions and 42047 deletions
|
|
@ -28,16 +28,18 @@ OpenAPI_tsn_qos_container_rm_t *OpenAPI_tsn_qos_container_rm_create(
|
|||
|
||||
void OpenAPI_tsn_qos_container_rm_free(OpenAPI_tsn_qos_container_rm_t *tsn_qos_container_rm)
|
||||
{
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
|
||||
if (NULL == tsn_qos_container_rm) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(tsn_qos_container_rm);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_tsn_qos_container_rm_convertToJSON(OpenAPI_tsn_qos_container_rm_t *tsn_qos_container_rm)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
|
||||
if (tsn_qos_container_rm == NULL) {
|
||||
ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed [TsnQosContainerRm]");
|
||||
|
|
@ -73,8 +75,11 @@ end:
|
|||
OpenAPI_tsn_qos_container_rm_t *OpenAPI_tsn_qos_container_rm_parseFromJSON(cJSON *tsn_qos_container_rmJSON)
|
||||
{
|
||||
OpenAPI_tsn_qos_container_rm_t *tsn_qos_container_rm_local_var = NULL;
|
||||
cJSON *max_tsc_burst_size = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "maxTscBurstSize");
|
||||
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
cJSON *max_tsc_burst_size = NULL;
|
||||
cJSON *tsc_pack_delay = NULL;
|
||||
cJSON *tsc_prio_level = NULL;
|
||||
max_tsc_burst_size = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "maxTscBurstSize");
|
||||
if (max_tsc_burst_size) {
|
||||
if (!cJSON_IsNumber(max_tsc_burst_size)) {
|
||||
ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed [max_tsc_burst_size]");
|
||||
|
|
@ -82,8 +87,7 @@ OpenAPI_tsn_qos_container_rm_t *OpenAPI_tsn_qos_container_rm_parseFromJSON(cJSON
|
|||
}
|
||||
}
|
||||
|
||||
cJSON *tsc_pack_delay = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "tscPackDelay");
|
||||
|
||||
tsc_pack_delay = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "tscPackDelay");
|
||||
if (tsc_pack_delay) {
|
||||
if (!cJSON_IsNumber(tsc_pack_delay)) {
|
||||
ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed [tsc_pack_delay]");
|
||||
|
|
@ -91,8 +95,7 @@ OpenAPI_tsn_qos_container_rm_t *OpenAPI_tsn_qos_container_rm_parseFromJSON(cJSON
|
|||
}
|
||||
}
|
||||
|
||||
cJSON *tsc_prio_level = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "tscPrioLevel");
|
||||
|
||||
tsc_prio_level = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "tscPrioLevel");
|
||||
if (tsc_prio_level) {
|
||||
if (!cJSON_IsNumber(tsc_prio_level)) {
|
||||
ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed [tsc_prio_level]");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue