aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-06-21 19:41:30 +0200
committerHarald Welte <laforge@gnumonks.org>2016-06-22 23:31:06 +0000
commitc2874c4360be5692ead62f78b82d8ab962c8dc7b (patch)
tree1286cffdd84db2f2344065698fa1265b443f1bab
parent3f919171efc52c88f54cc9140588854e14d152b5 (diff)
dyn PDCH: safeguard: exit if nothing pending in dyn_pdch_ts_disconnected()
The function would currently only be called in cases where one of the if branches catches on, but for safety's and clarity's sake, don't ts_connect using as_pchan if no reconnect is pending. Change-Id: I52c34065254e902bb80662fc04540901b36cb4c3
-rw-r--r--src/common/rsl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index cf6cef8b..674ce871 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1791,7 +1791,9 @@ void dyn_pdch_ts_disconnected(struct gsm_bts_trx_ts *ts)
gsm_lchan_name(ts->lchan));
ts->lchan[0].type = GSM_LCHAN_PDTCH;
as_pchan = GSM_PCHAN_PDCH;
- }
+ } else
+ /* No reconnect pending. */
+ return;
rc = bts_model_ts_connect(ts, as_pchan);
/* Error? then NACK right now. */