Commit 3ae66538 authored by Sakthivel Velumani's avatar Sakthivel Velumani

Declare variable outside of case: label

parent 8f79b4ae
...@@ -985,6 +985,7 @@ static void get_allowed_nssai(nr_nas_msg_snssai_t nssai[8], const uint8_t *pdu_b ...@@ -985,6 +985,7 @@ static void get_allowed_nssai(nr_nas_msg_snssai_t nssai[8], const uint8_t *pdu_b
/* optional fields */ /* optional fields */
while (pdu_buffer < end) { while (pdu_buffer < end) {
const int type = *pdu_buffer++; const int type = *pdu_buffer++;
int length = 0;
switch (type) { switch (type) {
case 0x77: // 5GS mobile identity case 0x77: // 5GS mobile identity
pdu_buffer += ntoh_int16_buf(pdu_buffer) + sizeof(uint16_t); pdu_buffer += ntoh_int16_buf(pdu_buffer) + sizeof(uint16_t);
...@@ -996,7 +997,7 @@ static void get_allowed_nssai(nr_nas_msg_snssai_t nssai[8], const uint8_t *pdu_b ...@@ -996,7 +997,7 @@ static void get_allowed_nssai(nr_nas_msg_snssai_t nssai[8], const uint8_t *pdu_b
break; break;
case 0x15: // allowed NSSAI case 0x15: // allowed NSSAI
const int length = *pdu_buffer++; length = *pdu_buffer++;
parse_allowed_nssai(nssai, pdu_buffer, length); parse_allowed_nssai(nssai, pdu_buffer, length);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment