diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2014-01-15 09:57:07 +0100 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2014-01-15 10:03:42 +0100 |
commit | 6f0796a33adf989db18ba6aae5cb64806049c435 (patch) | |
tree | 846027444ebb2d3b7e20e1457cee804b05e23bac /src/csn1.cpp | |
parent | 1b517342ae946faa8408fd4bcdf50d8248e88d8c (diff) |
Set csnStream direction *after* csnStreamInit
Fixes a bug introduced in commit 402cdc. That commit sets direction to
zero so setting it to 1 should be done after the call to
csnStreamInit().
This issue was discovered by the rlcmac test.
Diffstat (limited to 'src/csn1.cpp')
-rw-r--r-- | src/csn1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csn1.cpp b/src/csn1.cpp index 7f64823d..258f7c99 100644 --- a/src/csn1.cpp +++ b/src/csn1.cpp @@ -544,11 +544,11 @@ csnStreamDecoder(csnStream_t* ar, const CSN_DESCR* pDescr, bitvec *vector, unsig guint8 length = bitvec_read_field(vector, readIndex, length_len); LOGPC(DCSN1, LOGL_NOTICE, "%s length = %d | ", pDescr->sz , (int)length); - arT.direction = 1; bit_offset += length_len; remaining_bits_len -= length_len; csnStreamInit(&arT, bit_offset, length); + arT.direction = 1; Status = serialize(&arT, vector, readIndex, pvDATA(data, pDescr->offset)); if (Status >= 0) |