path: root/openbsc/src/osmo-bsc/osmo_bsc_api.c
diff options
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-27 21:29:03 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-01-07 15:50:14 +0100
commitc7db4dce4a766176ac64528340975d6a28491afb (patch)
tree4a5a78d17055119c2b583222e6169980de58fc6b /openbsc/src/osmo-bsc/osmo_bsc_api.c
parentd5edc4f84d220ad9e9d6657d48075354ae25a364 (diff)
bsc: Fix crash when the new route is not available
When we are asked to route calls on a local link and the link is not available we would crash when trying to send a packet over a deadline. When we have decided to move a connection it is guranteed that the current SCCP connection will vanish, we either migrate to another MSC or the RSL/subscriber connection will be closed.
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_api.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_api.c b/openbsc/src/osmo-bsc/osmo_bsc_api.c
index c25725997..4973846e2 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_api.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_api.c
@@ -242,7 +242,7 @@ static void bsc_dtap(struct gsm_subscriber_connection *conn, uint8_t link_id, st
* We might want to move this connection to a new MSC. Ask someone
* to handle it. If it was handled we will return.
- if (handle_cc_setup(conn, msg) > 1)
+ if (handle_cc_setup(conn, msg) >= 1)
bsc_scan_bts_msg(conn, msg);