From c839667324a1b27af7ad23c2d57ca78d35c2581d Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 26 Dec 2010 19:59:32 +0100 Subject: 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. --- openbsc/src/handover_logic.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/src/handover_logic.c') diff --git a/openbsc/src/handover_logic.c b/openbsc/src/handover_logic.c index bc9d68e88..2cef2c4ad 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; -- cgit v1.2.3