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
This commit is contained in:
Alexander Couzens 2019-08-23 23:30:12 +02:00 committed by gsmevent admin
parent 876a1f06a4
commit 5a683a2957
1 changed files with 1 additions and 1 deletions

View File

@ -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);