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
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
char* OpenAPI_rat_selector_ToString(OpenAPI_rat_selector_e rat_selector)
|
||||
{
|
||||
const char *rat_selectorArray[] = { "NULL", "E_UTRA", "NR" };
|
||||
const char *rat_selectorArray[] = { "NULL", "E-UTRA", "NR" };
|
||||
size_t sizeofArray = sizeof(rat_selectorArray) / sizeof(rat_selectorArray[0]);
|
||||
if (rat_selector < sizeofArray)
|
||||
return (char *)rat_selectorArray[rat_selector];
|
||||
|
|
@ -17,7 +17,7 @@ char* OpenAPI_rat_selector_ToString(OpenAPI_rat_selector_e rat_selector)
|
|||
OpenAPI_rat_selector_e OpenAPI_rat_selector_FromString(char* rat_selector)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *rat_selectorArray[] = { "NULL", "E_UTRA", "NR" };
|
||||
const char *rat_selectorArray[] = { "NULL", "E-UTRA", "NR" };
|
||||
size_t sizeofArray = sizeof(rat_selectorArray) / sizeof(rat_selectorArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(rat_selector, rat_selectorArray[stringToReturn]) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue