[SBI] Crash occurs when ENUM in the MAP (#2103)

This commit is contained in:
Sukchan Lee 2023-03-01 17:50:25 +09:00
parent ce668c556c
commit 969c116e77
1097 changed files with 266728 additions and 42047 deletions

View file

@ -18,16 +18,18 @@ OpenAPI_ce_mode_b_ind_t *OpenAPI_ce_mode_b_ind_create(
void OpenAPI_ce_mode_b_ind_free(OpenAPI_ce_mode_b_ind_t *ce_mode_b_ind)
{
OpenAPI_lnode_t *node = NULL;
if (NULL == ce_mode_b_ind) {
return;
}
OpenAPI_lnode_t *node;
ogs_free(ce_mode_b_ind);
}
cJSON *OpenAPI_ce_mode_b_ind_convertToJSON(OpenAPI_ce_mode_b_ind_t *ce_mode_b_ind)
{
cJSON *item = NULL;
OpenAPI_lnode_t *node = NULL;
if (ce_mode_b_ind == NULL) {
ogs_error("OpenAPI_ce_mode_b_ind_convertToJSON() failed [CeModeBInd]");
@ -47,12 +49,13 @@ end:
OpenAPI_ce_mode_b_ind_t *OpenAPI_ce_mode_b_ind_parseFromJSON(cJSON *ce_mode_b_indJSON)
{
OpenAPI_ce_mode_b_ind_t *ce_mode_b_ind_local_var = NULL;
cJSON *ce_mode_b_support_ind = cJSON_GetObjectItemCaseSensitive(ce_mode_b_indJSON, "ceModeBSupportInd");
OpenAPI_lnode_t *node = NULL;
cJSON *ce_mode_b_support_ind = NULL;
ce_mode_b_support_ind = cJSON_GetObjectItemCaseSensitive(ce_mode_b_indJSON, "ceModeBSupportInd");
if (!ce_mode_b_support_ind) {
ogs_error("OpenAPI_ce_mode_b_ind_parseFromJSON() failed [ce_mode_b_support_ind]");
goto end;
}
if (!cJSON_IsBool(ce_mode_b_support_ind)) {
ogs_error("OpenAPI_ce_mode_b_ind_parseFromJSON() failed [ce_mode_b_support_ind]");
goto end;