nrUE NAS: minor changes in get_allowed_nssai()
This function was very wrong, now it's just wrong. (It does not sanitize the input properly. Some bad input may have unexpected effects on the nrUE.) It needs a serious rewrite. I just wanted to "fix" it so that it processes correctly some correct input data.
This commit is contained in:
@@ -1157,11 +1157,13 @@ static void get_allowed_nssai(nr_nas_msg_snssai_t nssai[8], const uint8_t *pdu_b
|
|||||||
case 0x15: // allowed NSSAI
|
case 0x15: // allowed NSSAI
|
||||||
length = *pdu_buffer++;
|
length = *pdu_buffer++;
|
||||||
parse_allowed_nssai(nssai, pdu_buffer, length);
|
parse_allowed_nssai(nssai, pdu_buffer, length);
|
||||||
|
pdu_buffer += length;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOG_W(NAS, "This NAS IEI is not handled when extracting list of allowed NSSAI\n");
|
LOG_W(NAS, "This NAS IEI (0x%2.2x) is not handled when extracting list of allowed NSSAI\n", type);
|
||||||
pdu_buffer = end;
|
length = *pdu_buffer++;
|
||||||
|
pdu_buffer += length;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user