From: Kern Sibbald Date: Wed, 21 Nov 2012 07:05:51 +0000 (+0100) Subject: Backport from Enterprise X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f536a072f1b72c89db355270bab7588878a62640;p=bacula%2Fbacula Backport from Enterprise --- 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 */ }