diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2019-08-23 23:30:12 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2019-08-23 23:48:51 +0200 |
commit | 4aeb4ec18269089ef3915e0f25f5aade81fe4038 (patch) | |
tree | 1f4cfd4e63053d10f917c8b8cd9176d7773142a3 | |
parent | 47cf84d8d7ab76cba5cc9da7305ef34ea5cbd1ea (diff) |
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
-rw-r--r-- | src/libmsc/smpp_openbsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |