Commit 7ac990fa authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Merge branch 'fix_sd_nas_decode' into 'develop'

Fix decode SD/HPLMNSD in NAS

See merge request oai/cn5g/oai-cn5g-amf!134
parents 8c47adea 8814bc18
......@@ -138,8 +138,6 @@ int NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) {
length = *(buf + decoded_size);
decoded_size++;
int length_tmp = length;
a.sd = SD_NO_VALUE; // Default value
a.mHplmnSd = SD_NO_VALUE; // Default value
while (length_tmp) {
switch (*(buf + decoded_size)) {
......@@ -231,8 +229,6 @@ int NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) {
S_NSSAI.insert(S_NSSAI.end(), a);
a = {0, 0, 0, 0};
a.sd = SD_NO_VALUE; // Default value
a.mHplmnSd = SD_NO_VALUE; // Default value
}
for (int i = 0; i < S_NSSAI.size(); i++) {
......
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