From 1d64f481130b77758528ad66cd803d64bf1311ba Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 12 Dec 2010 10:28:18 +0100 Subject: [PATCH] Fix end plugin stream index --- bacula/src/filed/fd_plugins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), -- 2.39.5