aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-10 18:06:29 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-10 18:06:29 +0100
commit0d6946741c7b5697a58e7650b6e60d495a6cfb32 (patch)
tree73b909d74c3c770d57f5dde0990784b4157cf71e /src/osmo-bts-sysmo
parent7e10bd6401916d1768f5b2caaaae1ee35db85735 (diff)
sysmobts: Check mgr->calib.bts_conn for NULL
Check the right variable for NULL. Fixes: CID 1262214
Diffstat (limited to 'src/osmo-bts-sysmo')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr_calib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_calib.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_calib.c
index 27c8b4df..62509f2a 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_calib.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_calib.c
@@ -524,7 +524,7 @@ int sysmobts_mgr_calib_init(struct sysmobts_mgr_instance *mgr)
"localhost", 4238,
bts_updown_cb, bts_read_cb,
NULL, mgr);
- if (!mgr) {
+ if (!mgr->calib.bts_conn) {
LOGP(DCALIB, LOGL_ERROR,
"Failed to create IPA connection\n");
return -1;