aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/handover_logic.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-26 19:59:32 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-26 21:19:28 +0100
commitc839667324a1b27af7ad23c2d57ca78d35c2581d (patch)
treed2d1f2de3fb78927c391f5c257354df53b168e60 /openbsc/src/handover_logic.c
parent019d0167b6bf3fb757a1974e108016e45e9b5aaa (diff)
ho: Set the conn to NULL before calling lchan_release
In case we fail to activate the lchan set the connection to NULL before calling the lchan release function.
Diffstat (limited to 'openbsc/src/handover_logic.c')
-rw-r--r--openbsc/src/handover_logic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/handover_logic.c b/openbsc/src/handover_logic.c
index bc9d68e8..2cef2c4a 100644
--- a/openbsc/src/handover_logic.c
+++ b/openbsc/src/handover_logic.c
@@ -137,6 +137,7 @@ int bsc_handover_start(struct gsm_lchan *old_lchan, struct gsm_bts *bts)
if (rc < 0) {
LOGP(DHO, LOGL_ERROR, "could not activate channel\n");
new_lchan->conn->ho_lchan = NULL;
+ new_lchan->conn = NULL;
talloc_free(ho);
lchan_free(new_lchan);
return rc;