summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libcommon/oap_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/libcommon/oap_client.c')
-rw-r--r--openbsc/src/libcommon/oap_client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/libcommon/oap_client.c b/openbsc/src/libcommon/oap_client.c
index e372edea9..54b71e442 100644
--- a/openbsc/src/libcommon/oap_client.c
+++ b/openbsc/src/libcommon/oap_client.c
@@ -35,6 +35,9 @@ int oap_client_init(struct oap_client_config *config,
{
OSMO_ASSERT(state->state == OAP_UNINITIALIZED);
+ if (!config)
+ goto disable;
+
if (config->client_id == 0)
goto disable;