bsc_api: Pass the subscriber connection to the SMS...
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index f6a44e0..297a2c9 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -3117,7 +3117,7 @@
 		rc = gsm0408_rcv_rr(msg);
 		break;
 	case GSM48_PDISC_SMS:
-		rc = gsm0411_rcv_sms(msg, link_id);
+		rc = gsm0411_rcv_sms(&msg->lchan->conn, msg, link_id);
 		break;
 	case GSM48_PDISC_MM_GPRS:
 	case GSM48_PDISC_SM_GPRS: