diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-05-06 23:29:17 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-06-19 18:32:22 +0200 |
commit | 6e5482bdc397c604a030af13e7de40ed6b950cc8 (patch) | |
tree | dc060eeaaa071f626489133a58df153142ba2ee9 | |
parent | e015a72629c3cb23c8b8cd6284b1f9fe6b614d19 (diff) |
gsup_client: Make use of OAP optional
-rw-r--r-- | openbsc/src/gprs/gprs_gsup_client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gprs_gsup_client.c b/openbsc/src/gprs/gprs_gsup_client.c index deaf15622..c07aa8daa 100644 --- a/openbsc/src/gprs/gprs_gsup_client.c +++ b/openbsc/src/gprs/gprs_gsup_client.c @@ -270,9 +270,11 @@ struct gprs_gsup_client *gprs_gsup_client_create(const char *ip_addr, gsupc = talloc_zero(tall_bsc_ctx, struct gprs_gsup_client); OSMO_ASSERT(gsupc); - rc = oap_init(oap_config, &gsupc->oap_state); - if (rc != 0) - goto failed; + if (oap_config) { + rc = oap_init(oap_config, &gsupc->oap_state); + if (rc != 0) + goto failed; + } gsupc->link = ipa_client_conn_create(gsupc, /* no e1inp */ NULL, |