aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-11 13:02:29 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-11 13:13:55 +0200
commit0808f6860111ef54e80a2865029760e063c29755 (patch)
treefac7664bfeb9d4ef900bdb92c54a67f846358e42 /src
parent25db7c6116d11a91697e439fcbc21eb824beace4 (diff)
ms: Fix timer start condition (Coverity)
Currently the timer can be started even if m_ul_tbf is attached. Replace m_dl_tbf by m_ul_tbf to only start the timer if _both_ TBF are detached. Fixes: Coverity CID 1304683 Sponsored-by: On-Waves ehf
Diffstat (limited to 'src')
-rw-r--r--src/gprs_ms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs_ms.cpp b/src/gprs_ms.cpp
index afbd7b7..f0379ce 100644
--- a/src/gprs_ms.cpp
+++ b/src/gprs_ms.cpp
@@ -239,7 +239,7 @@ void GprsMs::detach_tbf(gprs_rlcmac_tbf *tbf)
if (tbf->ms() == this)
tbf->set_ms(NULL);
- if (!m_dl_tbf && !m_dl_tbf)
+ if (!m_dl_tbf && !m_ul_tbf)
start_timer();
update_status();