Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dird: refactored sd_cmds.cc due to failed tls_duplicate_job_test
- ConnectToStorageDaemon is now the only function deletes the BareosSocket for the storage daemon upon failure during handshake using a std::unique_ptr - all other functions now use TerminateAndCloseJcrStoreSocket to shutdown a socket on errors that happen after the connection has been established - the function call to AuthenticateWithStorageDaemon has now the BareosSocket* as argument, not the hidden jcr->store_bsock, that could be altered in this function - replaced NULL with nullptr - removed obvious comments - renamed a function name to match its purpose
- Loading branch information
Showing
5 changed files
with
99 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.