aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/abis_rsl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/abis_rsl.c b/src/abis_rsl.c
index d9a39b8b4..fcadcb8b7 100644
--- a/src/abis_rsl.c
+++ b/src/abis_rsl.c
@@ -680,12 +680,14 @@ static int rsl_rx_conn_fail(struct msgb *msg)
if (TLVP_PRESENT(&tp, RSL_IE_CAUSE) &&
TLVP_LEN(&tp, RSL_IE_CAUSE) >= 1 &&
*TLVP_VAL(&tp, RSL_IE_CAUSE) == 0x18) {
- DEBUGPC(DRSL, "IGNORING\n");
- return 0;
+ if (msg->lchan->use_count > 0) {
+ DEBUGPC(DRSL, "Cause 0x18 IGNORING, lchan in use! (%d times)\n", msg->lchan->use_count);
+ return 0;
+ }
}
}
- DEBUGPC(DRSL, "\n");
+ DEBUGPC(DRSL, "RELEASING.\n");
/* FIXME: only free it after channel release ACK */
return rsl_chan_release(msg->lchan);