bsc_api: Clear the conn->lchan before calling subscr_con_free
diff --git a/openbsc/src/bsc_api.c b/openbsc/src/bsc_api.c
index ae93706..59b6af8 100644
--- a/openbsc/src/bsc_api.c
+++ b/openbsc/src/bsc_api.c
@@ -329,6 +329,7 @@
 			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);
 		}