summaryrefslogtreecommitdiffstats
path: root/library/RLCMAC_EncDec.cc
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-04-30 19:59:13 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-04-30 20:00:02 +0200
commita2c5b6e9d942838c27fc56a76ddec76afba01c4b (patch)
treeae17c853bc8f5834593e45c96a5b051fe96effc9 /library/RLCMAC_EncDec.cc
parentecaeb896488da0b16b2e55df9c4e1ac3a46f3171 (diff)
RLCMAC_EncDEc.cc: dec_RlcmacUl(Egprs)DataBlock: fix tlli and pfi uninitialized instead of omit
Diffstat (limited to 'library/RLCMAC_EncDec.cc')
-rw-r--r--library/RLCMAC_EncDec.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/RLCMAC_EncDec.cc b/library/RLCMAC_EncDec.cc
index f4735e9..d544e69 100644
--- a/library/RLCMAC_EncDec.cc
+++ b/library/RLCMAC_EncDec.cc
@@ -606,10 +606,14 @@ RlcmacUlDataBlock dec__RlcmacUlDataBlock(const OCTETSTRING& stream)
if (ret_val.mac__hdr().tlli__ind()) {
ret_val.tlli() = OCTETSTRING(4, ttcn_buffer.get_read_data());
ttcn_buffer.increase_pos(4);
+ } else {
+ ret_val.tlli() = OMIT_VALUE;
}
/* parse optional PFI */
if (ret_val.mac__hdr().pfi__ind()) {
ret_val.pfi().decode(RlcmacUlDataBlock_pfi_descr_, ttcn_buffer, TTCN_EncDec::CT_RAW);
+ } else {
+ ret_val.pfi() = OMIT_VALUE;
}
/* RLC blocks at end */
@@ -734,10 +738,14 @@ RlcmacUlEgprsDataBlock dec__RlcmacUlEgprsDataBlock(const OCTETSTRING& stream, Co
if (ret_val.tlli__ind()) {
ret_val.tlli() = OCTETSTRING(4, aligned_buffer.get_read_data());
aligned_buffer.increase_pos(4);
+ } else {
+ ret_val.tlli() = OMIT_VALUE;
}
/* parse optional PFI */
if (ret_val.mac__hdr().pfi__ind()) {
ret_val.pfi().decode(RlcmacUlDataBlock_pfi_descr_, aligned_buffer, TTCN_EncDec::CT_RAW);
+ } else {
+ ret_val.pfi() = OMIT_VALUE;
}
/* RLC blocks at end */