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
|
|
@ -20,16 +20,18 @@ OpenAPI_loss_connectivity_cfg_t *OpenAPI_loss_connectivity_cfg_create(
|
|||
|
||||
void OpenAPI_loss_connectivity_cfg_free(OpenAPI_loss_connectivity_cfg_t *loss_connectivity_cfg)
|
||||
{
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
|
||||
if (NULL == loss_connectivity_cfg) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(loss_connectivity_cfg);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_loss_connectivity_cfg_convertToJSON(OpenAPI_loss_connectivity_cfg_t *loss_connectivity_cfg)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
|
||||
if (loss_connectivity_cfg == NULL) {
|
||||
ogs_error("OpenAPI_loss_connectivity_cfg_convertToJSON() failed [LossConnectivityCfg]");
|
||||
|
|
@ -51,8 +53,9 @@ end:
|
|||
OpenAPI_loss_connectivity_cfg_t *OpenAPI_loss_connectivity_cfg_parseFromJSON(cJSON *loss_connectivity_cfgJSON)
|
||||
{
|
||||
OpenAPI_loss_connectivity_cfg_t *loss_connectivity_cfg_local_var = NULL;
|
||||
cJSON *max_detection_time = cJSON_GetObjectItemCaseSensitive(loss_connectivity_cfgJSON, "maxDetectionTime");
|
||||
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
cJSON *max_detection_time = NULL;
|
||||
max_detection_time = cJSON_GetObjectItemCaseSensitive(loss_connectivity_cfgJSON, "maxDetectionTime");
|
||||
if (max_detection_time) {
|
||||
if (!cJSON_IsNumber(max_detection_time)) {
|
||||
ogs_error("OpenAPI_loss_connectivity_cfg_parseFromJSON() failed [max_detection_time]");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue