From: Marco van Wieringen Date: Thu, 22 Mar 2012 12:08:14 +0000 (+0100) Subject: Fix bug #1848 bsock.c:335 Socket has errors=1 on call to client X-Git-Tag: Release-7.0.0~272 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f50deaa5bcaabee43801491b1a68af8ffb0f37c0;p=bacula%2Fbacula Fix bug #1848 bsock.c:335 Socket has errors=1 on call to client Removed the unneeded bnet_sig(dir, BNET_EOD) as the calling function changer_cmd in dircmd.c already sets the BNET_EOD on returning. So the autochanger_cmd function doesn't need to do it. --- diff --git a/bacula/src/stored/autochanger.c b/bacula/src/stored/autochanger.c index 67d1780edd..9d6b243930 100644 --- a/bacula/src/stored/autochanger.c +++ b/bacula/src/stored/autochanger.c @@ -640,7 +640,6 @@ bool autochanger_cmd(DCR *dcr, BSOCK *dir, const char *cmd) be.set_errno(stat); dir->fsend(_("Autochanger error: ERR=%s\n"), be.bstrerror()); } - bnet_sig(dir, BNET_EOD); bail_out: unlock_changer(dcr);