From: Kern Sibbald Date: Wed, 21 Nov 2012 07:05:51 +0000 (+0100) Subject: Backport from Enterprise X-Git-Tag: Release-7.0.0~80 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d167332711dc661cc5c8f80ed06c2f4029502cf0;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 */ }