mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +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_atsss_capability_t *OpenAPI_atsss_capability_create(
|
|||
|
||||
void OpenAPI_atsss_capability_free(OpenAPI_atsss_capability_t *atsss_capability)
|
||||
{
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
|
||||
if (NULL == atsss_capability) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(atsss_capability);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_atsss_capability_convertToJSON(OpenAPI_atsss_capability_t *atsss_capability)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
|
||||
if (atsss_capability == NULL) {
|
||||
ogs_error("OpenAPI_atsss_capability_convertToJSON() failed [AtsssCapability]");
|
||||
|
|
@ -73,8 +75,11 @@ end:
|
|||
OpenAPI_atsss_capability_t *OpenAPI_atsss_capability_parseFromJSON(cJSON *atsss_capabilityJSON)
|
||||
{
|
||||
OpenAPI_atsss_capability_t *atsss_capability_local_var = NULL;
|
||||
cJSON *atsss_ll = cJSON_GetObjectItemCaseSensitive(atsss_capabilityJSON, "atsssLL");
|
||||
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
cJSON *atsss_ll = NULL;
|
||||
cJSON *mptcp = NULL;
|
||||
cJSON *rtt_without_pmf = NULL;
|
||||
atsss_ll = cJSON_GetObjectItemCaseSensitive(atsss_capabilityJSON, "atsssLL");
|
||||
if (atsss_ll) {
|
||||
if (!cJSON_IsBool(atsss_ll)) {
|
||||
ogs_error("OpenAPI_atsss_capability_parseFromJSON() failed [atsss_ll]");
|
||||
|
|
@ -82,8 +87,7 @@ OpenAPI_atsss_capability_t *OpenAPI_atsss_capability_parseFromJSON(cJSON *atsss_
|
|||
}
|
||||
}
|
||||
|
||||
cJSON *mptcp = cJSON_GetObjectItemCaseSensitive(atsss_capabilityJSON, "mptcp");
|
||||
|
||||
mptcp = cJSON_GetObjectItemCaseSensitive(atsss_capabilityJSON, "mptcp");
|
||||
if (mptcp) {
|
||||
if (!cJSON_IsBool(mptcp)) {
|
||||
ogs_error("OpenAPI_atsss_capability_parseFromJSON() failed [mptcp]");
|
||||
|
|
@ -91,8 +95,7 @@ OpenAPI_atsss_capability_t *OpenAPI_atsss_capability_parseFromJSON(cJSON *atsss_
|
|||
}
|
||||
}
|
||||
|
||||
cJSON *rtt_without_pmf = cJSON_GetObjectItemCaseSensitive(atsss_capabilityJSON, "rttWithoutPmf");
|
||||
|
||||
rtt_without_pmf = cJSON_GetObjectItemCaseSensitive(atsss_capabilityJSON, "rttWithoutPmf");
|
||||
if (rtt_without_pmf) {
|
||||
if (!cJSON_IsBool(rtt_without_pmf)) {
|
||||
ogs_error("OpenAPI_atsss_capability_parseFromJSON() failed [rtt_without_pmf]");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue