mncc: Fix crash when memory allocation is failing
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 160f967..668b8e0 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -2871,7 +2871,7 @@
 {
 	struct gsm_mncc *mode = arg;
 
-	return gsm48_lchan_modify(trans->conn->lchan, mode->lchan_mode);
+	return gsm0808_assign_req(trans->conn, mode->lchan_mode, 1);
 }
 
 static struct downstate {
@@ -3231,7 +3231,7 @@
 				    transaction_id, new_callref++);
 		if (!trans) {
 			DEBUGP(DCC, "No memory for trans.\n");
-			rc = gsm48_tx_simple(trans->conn,
+			rc = gsm48_tx_simple(conn,
 					     GSM48_PDISC_CC | (transaction_id << 4),
 					     GSM48_MT_CC_RELEASE_COMPL);
 			return -ENOMEM;