commit | 0ae7153fb415948bac6b654d69663ba82c39f453 | [log] [tgz] |
---|---|---|
author | Max <msuraev@sysmocom.de> | Fri Apr 08 11:52:34 2016 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Mon Apr 11 10:22:55 2016 +0200 |
tree | 25637eff9b3fd250fd0c17bf1148d0d27808aa93 | |
parent | 7bd1b708188f47f6d6c5f12715317921a3ac8e4e [diff] |
Fix segfault with broken config Fixes OS#1691
diff --git a/openbsc/src/libbsc/bsc_init.c b/openbsc/src/libbsc/bsc_init.c index 859d999..713109c 100644 --- a/openbsc/src/libbsc/bsc_init.c +++ b/openbsc/src/libbsc/bsc_init.c
@@ -373,6 +373,9 @@ { int i, n; + if (!bts->model) + return -EFAULT; + if (bts->model->start && !bts->model->started) { int ret = bts->model->start(bts->network); if (ret < 0)