mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
[SBI] Modified Exception handler on error (#2169)
This commit is contained in:
parent
5f377d0126
commit
6b17bffdfd
646 changed files with 4920 additions and 735 deletions
|
|
@ -310,6 +310,10 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
s_nssai = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "sNssai");
|
||||
if (s_nssai) {
|
||||
s_nssai_local_nonprim = OpenAPI_snssai_parseFromJSON(s_nssai);
|
||||
if (!s_nssai_local_nonprim) {
|
||||
ogs_error("OpenAPI_snssai_parseFromJSON failed [s_nssai]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
up_cnx_state = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "upCnxState");
|
||||
|
|
@ -324,6 +328,10 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
n2_sm_info = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "n2SmInfo");
|
||||
if (n2_sm_info) {
|
||||
n2_sm_info_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(n2_sm_info);
|
||||
if (!n2_sm_info_local_nonprim) {
|
||||
ogs_error("OpenAPI_ref_to_binary_data_parseFromJSON failed [n2_sm_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
n2_sm_info_type = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "n2SmInfoType");
|
||||
|
|
@ -353,7 +361,6 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
OpenAPI_ebi_arp_mapping_t *allocated_ebi_listItem = OpenAPI_ebi_arp_mapping_parseFromJSON(allocated_ebi_list_local);
|
||||
if (!allocated_ebi_listItem) {
|
||||
ogs_error("No allocated_ebi_listItem");
|
||||
OpenAPI_list_free(allocated_ebi_listList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(allocated_ebi_listList, allocated_ebi_listItem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue