From f536a072f1b72c89db355270bab7588878a62640 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 21 Nov 2012 08:05:51 +0100 Subject: [PATCH] Backport from Enterprise --- bacula/src/dird/ua_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/dird/ua_acl.c b/bacula/src/dird/ua_acl.c index 1a386fd75b..c510df6062 100644 --- a/bacula/src/dird/ua_acl.c +++ b/bacula/src/dird/ua_acl.c @@ -56,7 +56,7 @@ bool acl_access_ok(UAContext *ua, int acl, const char *item, int len) } /* If no console resource => default console and all is permitted */ - if (!ua->cons) { + if (!ua || !ua->cons) { Dmsg0(1400, "Root cons access OK.\n"); return true; /* No cons resource -> root console OK for everything */ } -- 2.39.5