diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-02-24 00:42:44 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-02-24 00:43:25 +0100 |
commit | 1901b92f0c1f20dad30c883d91cc82556b4f2ebd (patch) | |
tree | a29dcae2d01e97470b5fe19128bba8223e7e2287 /openbsc/src/osmo-bsc | |
parent | 69da1d453cb46e4ad2383747e430a59a2b49a276 (diff) |
osmo-bsc: fix checking wrong pointer for ctrl setup success
Diffstat (limited to 'openbsc/src/osmo-bsc')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c index 4bb2da170..3806b2473 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_main.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c @@ -226,7 +226,7 @@ int main(int argc, char **argv) bsc_api_init(bsc_gsmnet, osmo_bsc_api()); bsc_gsmnet->ctrl = bsc_controlif_setup(bsc_gsmnet, OSMO_CTRL_PORT_NITB_BSC); - if (!bsc_gsmnet) { + if (!bsc_gsmnet->ctrl) { fprintf(stderr, "Failed to init the control interface. Exiting.\n"); exit(1); } |