From c7db4dce4a766176ac64528340975d6a28491afb Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 27 Jun 2011 21:29:03 +0200 Subject: 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. --- openbsc/src/osmo-bsc/osmo_bsc_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/osmo-bsc') 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) return; bsc_scan_bts_msg(conn, msg); -- cgit v1.2.3