aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rlc.cpp')
-rw-r--r--src/rlc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlc.cpp b/src/rlc.cpp
index 88a4cb2..75eefe1 100644
--- a/src/rlc.cpp
+++ b/src/rlc.cpp
@@ -106,7 +106,7 @@ void gprs_rlc_dl_window::update(BTS *bts, const struct bitvec *rbb,
uint16_t first_bsn, uint16_t *lost,
uint16_t *received)
{
- unsigned num_blocks = rbb->cur_bit;
+ unsigned num_blocks = rbb->cur_bit > distance() ? distance() : rbb->cur_bit;
unsigned bsn;
/* first_bsn is in range V(A)..V(S) */