]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #1848 bsock.c:335 Socket has errors=1 on call to client
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 22 Mar 2012 12:08:14 +0000 (13:08 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Thu, 22 Mar 2012 12:08:14 +0000 (13:08 +0100)
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.

bacula/src/stored/autochanger.c

index 67d1780edd7fdd88cee1ea822aa07537108cb9c4..9d6b243930deec574cdb40daa66bbf924bebf14f 100644 (file)
@@ -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);