[PATCH 3/4] sms: Simplify the return handling for SMPP routes/unroutable

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peyer Freyther holger at freyther.de
Mon Jul 6 14:52:29 UTC 2015


From: Holger Hans Peter Freyther <holger at moiji-mobile.com>

---
 openbsc/src/libmsc/gsm_04_11.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index 82e9fae..2b6966d 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -297,7 +297,7 @@ int sms_route_mt_sms(struct gsm_subscriber_connection *conn, struct msgb *msg,
 		rc = 1; /* cause 1: unknown subscriber */
 		osmo_counter_inc(conn->bts->network->stats.sms.no_receiver);
 #endif
-		goto out;
+		return rc;
 	}
 
 	switch (sms_mti) {
@@ -319,7 +319,6 @@ int sms_route_mt_sms(struct gsm_subscriber_connection *conn, struct msgb *msg,
 	if (!rc && !gsms->receiver)
 		rc = GSM411_RP_CAUSE_MO_NUM_UNASSIGNED;
 
-out:
 	return rc;
 }
 
-- 
2.3.5




More information about the OpenBSC mailing list