rsl: fix "CONNECTION FAIL: RELEASING" message

This commit is contained in:
Harald Welte 2009-12-24 14:49:07 +01:00
parent 8410597dd7
commit 844eab1df5
1 changed files with 2 additions and 1 deletions

View File

@ -955,7 +955,7 @@ static int rsl_rx_conn_fail(struct msgb *msg)
struct tlv_parsed tp;
/* FIXME: print which channel */
LOGP(DRSL, LOGL_NOTICE, "CONNECTION FAIL: RELEASING\n");
LOGP(DRSL, LOGL_NOTICE, "CONNECTION FAIL: RELEASING");
rsl_tlv_parse(&tp, dh->data, msgb_l2len(msg)-sizeof(*dh));
@ -963,6 +963,7 @@ static int rsl_rx_conn_fail(struct msgb *msg)
print_rsl_cause(LOGL_NOTICE, TLVP_VAL(&tp, RSL_IE_CAUSE),
TLVP_LEN(&tp, RSL_IE_CAUSE));
LOGP(DRSL, LOGL_NOTICE, "\n");
/* FIXME: only free it after channel release ACK */
return rsl_rf_chan_release(msg->lchan);
}