From: Kern Sibbald Date: Sun, 12 Dec 2010 09:28:18 +0000 (+0100) Subject: Fix end plugin stream index X-Git-Tag: Release-7.0.0~1272 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1d64f481130b77758528ad66cd803d64bf1311ba;p=bacula%2Fbacula Fix end plugin stream index --- diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index 28a61dcb95..defe88bf89 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -478,7 +478,7 @@ bool send_plugin_name(JCR *jcr, BSOCK *sd, bool start) stat = sd->fsend("%ld 1 %d %s%c", index, sp->portable, sp->cmd, 0); } else { /* Send end of data */ - stat = sd->fsend("0 0"); + stat = sd->fsend("%ld 0", jcr->JobFiles); } if (!stat) { Jmsg1(jcr, M_FATAL, 0, _("Network send error to SD. ERR=%s\n"),