commit | ca5702a5c65931b2bee50f56b49676928f37f2c8 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Thu Jun 10 18:20:54 2010 +0800 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Thu Jun 10 18:20:54 2010 +0800 |
tree | 33478b7c78c084eee192e665541ef9a6d550d76f | |
parent | 0afa044c0960637a34cb81b6b5056e6ece72b4b6 [diff] [blame] |
gsm_04_11: Handle OOM same as expired and clean the message.
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c index 23d291f..3aa9d09 100644 --- a/openbsc/src/gsm_04_11.c +++ b/openbsc/src/gsm_04_11.c
@@ -1160,12 +1160,10 @@ rc = rll_establish(lchan, UM_SAPI_SMS, rll_ind_cb, sms); break; case GSM_PAGING_EXPIRED: + case GSM_PAGING_OOM: sms_free(sms); rc = -ETIMEDOUT; break; - default: - rc = -EINVAL; - break; } return rc;