From: Eric Bollengier Date: Wed, 3 Mar 2021 15:37:24 +0000 (+0100) Subject: Fix reload issue when a Job doesn't have a Pool defined X-Git-Tag: Release-11.0.2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11ba9ef32679b98a7426507b2feca520ab4acf56;p=thirdparty%2Fbacula.git Fix reload issue when a Job doesn't have a Pool defined --- diff --git a/bacula/src/dird/dird.c b/bacula/src/dird/dird.c index 5e37b6030..8edab45f3 100644 --- a/bacula/src/dird/dird.c +++ b/bacula/src/dird/dird.c @@ -1144,7 +1144,7 @@ static bool check_resources() Emsg0(M_ERROR_TERM, 0, _("Too many items in Job resource\n")); } } - if (!job->storage && !job->pool->storage) { + if (!job->storage && (job->pool && !job->pool->storage)) { Jmsg(NULL, M_FATAL, 0, _("No storage specified in Job \"%s\" nor in Pool.\n"), job->name()); OK = false;