diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c index 23d291f0c..3aa9d09d8 100644 --- a/openbsc/src/gsm_04_11.c +++ b/openbsc/src/gsm_04_11.c @@ -1160,12 +1160,10 @@ static int paging_cb_send_sms(unsigned int hooknum, unsigned int event, 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;