bsc_api: Clear the conn->lchan before calling subscr_con_free

This commit is contained in:
Holger Hans Peter Freyther
2010-11-15 10:33:59 +01:00
parent a2e5cb8601
commit 8d216c7756

View File

@@ -329,6 +329,7 @@ int gsm0408_rcvmsg(struct msgb *msg, uint8_t link_id)
rc = api->compl_l3(lchan->conn, msg, 0);
if (rc != BSC_API_CONN_POL_ACCEPT) {
lchan->conn->lchan = NULL;
subscr_con_free(lchan->conn);
lchan_release(lchan, 0, 0);
}