commit | 8d216c775611662d2913bf7b1004295162fc724f | [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 | a2e5cb860150c7685aea0efb479172b9a90b4d4e [diff] [blame] |
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); }