From 4aeb4ec18269089ef3915e0f25f5aade81fe4038 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Fri, 23 Aug 2019 23:30:12 +0200 Subject: smpp_openbsc.c: check acl before deref it All other calls check acl before deref because in a setup with no access policy, there won't be any acl structure Change-Id: Ibe0256535b40351594d79baa05a0147a9f89dc26 --- src/libmsc/smpp_openbsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libmsc/smpp_openbsc.c b/src/libmsc/smpp_openbsc.c index bbfc5008f..e4c3891c2 100644 --- a/src/libmsc/smpp_openbsc.c +++ b/src/libmsc/smpp_openbsc.c @@ -326,7 +326,7 @@ static void alert_all_esme(struct smsc *smsc, struct vlr_subscr *vsub, "ESME is not (yet) bound, skipping alert\n"); continue; } - if (!esme->acl->alert_notifications) { + if (esme->acl && !esme->acl->alert_notifications) { LOGP(DSMPP, LOGL_DEBUG, "[%s] is not set to receive Alert Notifications\n", esme->system_id); -- cgit v1.2.3