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
|
|
@ -16,16 +16,18 @@ OpenAPI_nwdaf_event_t *OpenAPI_nwdaf_event_create(
|
|||
|
||||
void OpenAPI_nwdaf_event_free(OpenAPI_nwdaf_event_t *nwdaf_event)
|
||||
{
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
|
||||
if (NULL == nwdaf_event) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(nwdaf_event);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_nwdaf_event_convertToJSON(OpenAPI_nwdaf_event_t *nwdaf_event)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
|
||||
if (nwdaf_event == NULL) {
|
||||
ogs_error("OpenAPI_nwdaf_event_convertToJSON() failed [NwdafEvent]");
|
||||
|
|
@ -40,6 +42,7 @@ end:
|
|||
OpenAPI_nwdaf_event_t *OpenAPI_nwdaf_event_parseFromJSON(cJSON *nwdaf_eventJSON)
|
||||
{
|
||||
OpenAPI_nwdaf_event_t *nwdaf_event_local_var = NULL;
|
||||
OpenAPI_lnode_t *node = NULL;
|
||||
nwdaf_event_local_var = OpenAPI_nwdaf_event_create (
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue