diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-05-06 23:29:17 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-12-07 01:08:51 +0100 |
commit | a5b7969f49464da6d6d46c7fcc44e733a5742969 (patch) | |
tree | a921c9d9b2555b5621b79da1d01f53c843213230 | |
parent | 0d021e405aa49bf6c71228ca5f87c7aa317a5486 (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, |