aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/chan_alloc.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-08-19 16:44:00 +0200
committerHarald Welte <laforge@gnumonks.org>2011-08-19 16:44:00 +0200
commit7fad70c19806701decd1c958ab8001bf07c5f16d (patch)
tree01da8827caa0ba518009149070e705ab91e9637f /openbsc/src/libbsc/chan_alloc.c
parent901d57db07d21f8e7d7f4b11421f63c44c2b2600 (diff)
parent013ae46ef67ee560aeaa38e39936a1ae7e35232f (diff)
Merge branch 'master' of git.osmocom.org:openbsc
Diffstat (limited to 'openbsc/src/libbsc/chan_alloc.c')
-rw-r--r--openbsc/src/libbsc/chan_alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/chan_alloc.c b/openbsc/src/libbsc/chan_alloc.c
index c0bdc1be9..6f4fe20f8 100644
--- a/openbsc/src/libbsc/chan_alloc.c
+++ b/openbsc/src/libbsc/chan_alloc.c
@@ -299,6 +299,10 @@ void lchan_free(struct gsm_lchan *lchan)
sig.type = lchan->type;
lchan->type = GSM_LCHAN_NONE;
+ if (lchan->state != LCHAN_S_NONE) {
+ LOGP(DRLL, LOGL_NOTICE, "Freeing lchan with state %s - setting to NONE\n", gsm_lchans_name(lchan->state));
+ lchan->state = LCHAN_S_NONE;
+ }
if (lchan->conn) {
struct lchan_signal_data sig;