diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-11 13:02:29 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-11 13:13:55 +0200 |
commit | 0808f6860111ef54e80a2865029760e063c29755 (patch) | |
tree | fac7664bfeb9d4ef900bdb92c54a67f846358e42 /src | |
parent | 25db7c6116d11a91697e439fcbc21eb824beace4 (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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs_ms.cpp b/src/gprs_ms.cpp index afbd7b77..f0379ce8 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(); |