summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/libbsc/bsc_api.c')
-rw-r--r--openbsc/src/libbsc/bsc_api.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_api.c b/openbsc/src/libbsc/bsc_api.c
index 395002ada..427005402 100644
--- a/openbsc/src/libbsc/bsc_api.c
+++ b/openbsc/src/libbsc/bsc_api.c
@@ -247,6 +247,10 @@ struct gsm_subscriber_connection *bsc_subscr_con_allocate(struct gsm_lchan *lcha
conn = talloc_zero(net, struct gsm_subscriber_connection);
if (!conn)
return NULL;
+ if (!msc_create_conn_fsm(conn, NULL)) {
+ talloc_free(conn);
+ return NULL;
+ }
conn->network = net;
conn->lchan = lchan;