Skip to content

Commit

Permalink
Fix bareos-dir crash when both storage and pool are undefined for a b…
Browse files Browse the repository at this point in the history
…ackup job

Fixes #757: Director daemon crashes when job does not contain storage and pool definition
  • Loading branch information
loli10K authored and joergsteffens committed Jan 27, 2017
1 parent 96a28a3 commit 02e08d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dird/dird_conf.c
Expand Up @@ -1325,7 +1325,7 @@ bool JOBRES::validate()
return false;
}

if (!storage && !pool->storage) {
if (!storage && (!pool || !pool->storage)) {
Jmsg(NULL, M_ERROR, 0, _("No storage specified in Job \"%s\" nor in Pool.\n"), name());
return false;
}
Expand Down

0 comments on commit 02e08d5

Please sign in to comment.