From 6a003a047cc548e925afd77843c7e90d0deae1c1 Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Mon, 18 Jan 2016 15:50:15 +0100 Subject: [PATCH] Estimate call crashes on ndmp client Fixes #601: estimate crashes director when called for ndmp client --- src/dird/ua_cmds.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dird/ua_cmds.c b/src/dird/ua_cmds.c index 667036f83b7..c1d9e1f5c74 100644 --- a/src/dird/ua_cmds.c +++ b/src/dird/ua_cmds.c @@ -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 {