aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-27 13:46:48 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-06 14:52:51 +0100
commitebd50a6fd23c630ae9db13851b986fa7aebc2f62 (patch)
treee45845615735d2f55a48bd4d6235a0f936808cb7 /openbsc/include/openbsc
parentf1ba09b2e60a0f77ae142d62e8c5bcd0c294d35a (diff)
bsc: Clear the hand-over in case the new_lchan is failing
When the new_lchan for handover is failing we should stop the handover operation. This is fixing a crash that we get a timeout on the lchan and have no conn set to it. Introduce a flag to the bsc_clear_handover to not free the lchan. In case the ho_lchan is failing we do not want to call lchan_release as it would reset the state.
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r--openbsc/include/openbsc/handover.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/handover.h b/openbsc/include/openbsc/handover.h
index 5d710576c..9d9a90b84 100644
--- a/openbsc/include/openbsc/handover.h
+++ b/openbsc/include/openbsc/handover.h
@@ -9,6 +9,6 @@ struct gsm_subscriber_connection;
int bsc_handover_start(struct gsm_lchan *old_lchan, struct gsm_bts *bts);
/* clear any operation for this connection */
-void bsc_clear_handover(struct gsm_subscriber_connection *conn);
+void bsc_clear_handover(struct gsm_subscriber_connection *conn, int free_lchan);
#endif /* _HANDOVER_H */