diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-16 18:17:04 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-16 20:31:59 +0100 |
commit | b549ddfb04a6f7f4da5ccaab7e920593e71d2122 (patch) | |
tree | 4903da91cd534f552c2f47aac270c11392c9644e /openbsc/src/gsm_04_08.c | |
parent | 05bbec722769c4558daf9211f0734c81ddb056ac (diff) |
mncc: Fix crash when memory allocation is failing
Diffstat (limited to 'openbsc/src/gsm_04_08.c')
-rw-r--r-- | openbsc/src/gsm_04_08.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c index 160f9672c..668b8e04e 100644 --- a/openbsc/src/gsm_04_08.c +++ b/openbsc/src/gsm_04_08.c @@ -2871,7 +2871,7 @@ static int _gsm48_lchan_modify(struct gsm_trans *trans, void *arg) { 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 @@ static int gsm0408_rcv_cc(struct gsm_subscriber_connection *conn, struct msgb *m 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; |