commit | 473ba0f757cdf780a2c273d8c5d763275a78a1a5 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Mon Nov 15 10:33:59 2010 +0100 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Mon Nov 15 20:06:47 2010 +0100 |
tree | 376f11a4a23371ac6648fb704150ef93d324679e | |
parent | f3ddb3c80e4dcf06b1d075ae22388820834cdbb3 [diff] |
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); }