diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-16 15:36:14 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-16 15:42:18 +0800 |
commit | 280c768f910c29d19a605b9f8e2961fe92832dd1 (patch) | |
tree | 2c265bc76682d4f6aee1655aa4e5c521b7702238 /openbsc | |
parent | 1c6f394234d8655abf96e4bca713c7ea48e99045 (diff) |
gsm_04_11: Fix a crash... in case there is a already a connection
If there is a connection, return before paging... otherwise
we will delete the SMS twice.
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/gsm_04_11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c index 8a85933d8..4488f8d6c 100644 --- a/openbsc/src/gsm_04_11.c +++ b/openbsc/src/gsm_04_11.c @@ -1150,7 +1150,7 @@ int gsm411_send_sms_subscr(struct gsm_subscriber *subscr, lchan = lchan_for_subscr(subscr); if (lchan) { use_subscr_con(&lchan->conn); - gsm411_send_sms_lchan(&lchan->conn, sms); + return gsm411_send_sms_lchan(&lchan->conn, sms); } /* if not, we have to start paging */ |