mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +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
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
char* OpenAPI_patch_operation_ToString(OpenAPI_patch_operation_e patch_operation)
|
||||
{
|
||||
const char *patch_operationArray[] = { "NULL", "add", "copy", "move", "_remove", "replace", "test" };
|
||||
const char *patch_operationArray[] = { "NULL", "add", "copy", "move", "remove", "replace", "test" };
|
||||
size_t sizeofArray = sizeof(patch_operationArray) / sizeof(patch_operationArray[0]);
|
||||
if (patch_operation < sizeofArray)
|
||||
return (char *)patch_operationArray[patch_operation];
|
||||
|
|
@ -17,7 +17,7 @@ char* OpenAPI_patch_operation_ToString(OpenAPI_patch_operation_e patch_operation
|
|||
OpenAPI_patch_operation_e OpenAPI_patch_operation_FromString(char* patch_operation)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *patch_operationArray[] = { "NULL", "add", "copy", "move", "_remove", "replace", "test" };
|
||||
const char *patch_operationArray[] = { "NULL", "add", "copy", "move", "remove", "replace", "test" };
|
||||
size_t sizeofArray = sizeof(patch_operationArray) / sizeof(patch_operationArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(patch_operation, patch_operationArray[stringToReturn]) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue