aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bssap.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-08 21:41:41 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-08 22:11:29 +0200
commitf535aad6124bca2000db7d8d120250dc6a6fe384 (patch)
treeb2064c18b3c61cf99d598b19401b5d795d86c589 /openbsc/src/bssap.c
parentd0ac8866f1cb3a0de21900438bc8ecf853920a14 (diff)
bssap: Reset the msc_data on the lchan earlier/just in case
The refcount should drop to zero immediately and then the msc_data would be reset automatically but it is better to remove all traces of it right away.
Diffstat (limited to 'openbsc/src/bssap.c')
-rw-r--r--openbsc/src/bssap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c
index e78d727ef..738f3e3ea 100644
--- a/openbsc/src/bssap.c
+++ b/openbsc/src/bssap.c
@@ -480,6 +480,7 @@ static void continue_new_assignment(struct gsm_lchan *new_lchan)
if (new_lchan->msc_data->secondary_lchan != new_lchan) {
LOGP(DMSC, LOGL_ERROR, "This is not the secondary channel?\n");
+ new_lchan->msc_data = NULL;
put_subscr_con(&new_lchan->conn, 0);
return;
}