aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsm_04_08.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gsm_04_08.c')
-rw-r--r--src/gsm_04_08.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gsm_04_08.c b/src/gsm_04_08.c
index deafe7b2f..4b2ecdc65 100644
--- a/src/gsm_04_08.c
+++ b/src/gsm_04_08.c
@@ -1202,12 +1202,11 @@ static int gsm48_cc_rx_disconnect(struct msgb *msg)
/* Section 5.4.3.2 */
DEBUGP(DCC, "A -> DISCONNECT (state->RELEASE_REQ)\n");
call->state = GSM_CSTATE_RELEASE_REQ;
- if (call->state != GSM_CSTATE_NULL)
- put_lchan(msg->lchan);
/* FIXME: clear the network connection */
DEBUGP(DCC, "A <- RELEASE\n");
rc = gsm48_tx_simple(msg->lchan, GSM48_PDISC_CC,
GSM48_MT_CC_RELEASE);
+ put_lchan(msg->lchan);
/* forward DISCONNECT to other party */
if (!call->remote_lchan)