mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40: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
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
char* OpenAPI_max_integrity_protected_data_rate_ToString(OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rate)
|
||||
{
|
||||
const char *max_integrity_protected_data_rateArray[] = { "NULL", "_64_KBPS", "MAX_UE_RATE" };
|
||||
const char *max_integrity_protected_data_rateArray[] = { "NULL", "64_KBPS", "MAX_UE_RATE" };
|
||||
size_t sizeofArray = sizeof(max_integrity_protected_data_rateArray) / sizeof(max_integrity_protected_data_rateArray[0]);
|
||||
if (max_integrity_protected_data_rate < sizeofArray)
|
||||
return (char *)max_integrity_protected_data_rateArray[max_integrity_protected_data_rate];
|
||||
|
|
@ -17,7 +17,7 @@ char* OpenAPI_max_integrity_protected_data_rate_ToString(OpenAPI_max_integrity_p
|
|||
OpenAPI_max_integrity_protected_data_rate_e OpenAPI_max_integrity_protected_data_rate_FromString(char* max_integrity_protected_data_rate)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *max_integrity_protected_data_rateArray[] = { "NULL", "_64_KBPS", "MAX_UE_RATE" };
|
||||
const char *max_integrity_protected_data_rateArray[] = { "NULL", "64_KBPS", "MAX_UE_RATE" };
|
||||
size_t sizeofArray = sizeof(max_integrity_protected_data_rateArray) / sizeof(max_integrity_protected_data_rateArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(max_integrity_protected_data_rate, max_integrity_protected_data_rateArray[stringToReturn]) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue