Skip to content

Commit

Permalink
Estimate call crashes on ndmp client
Browse files Browse the repository at this point in the history
Fixes #601: estimate crashes director when called for ndmp client
  • Loading branch information
pstorz authored and Marco van Wieringen committed Jan 21, 2016
1 parent 2187695 commit 6a003a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dird/ua_cmds.c
Expand Up @@ -1751,6 +1751,14 @@ static bool estimate_cmd(UAContext *ua, const char *cmd)
jcr->res.fileset = fileset;
close_db(ua);

switch (client->Protocol) {
case APT_NATIVE:
break;
default:
ua->error_msg(_("Estimate is only supported on native clients.\n"));
return true;
}

if (job->pool->catalog) {
ua->catalog = job->pool->catalog;
} else {
Expand Down

0 comments on commit 6a003a0

Please sign in to comment.