aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-08-23 23:30:12 +0200
committergsmevent admin <admin@gsmevent.box>2019-08-23 23:30:45 +0200
commit5a683a2957eb1b6625849441b047fe134c5ae5fc (patch)
tree2cdf3c5760a44751c071017738149327a18da6c2
parent876a1f06a4fcdf288d191319f29bb9bddaed944c (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.c2
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);