Skip to content

Commit

Permalink
bsock: cleanup
Browse files Browse the repository at this point in the history
- removed redundant code
- re-format some lines
  • Loading branch information
franku committed Sep 20, 2018
1 parent 581b250 commit 01c2c6a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions core/src/lib/bsock.cc
Expand Up @@ -336,14 +336,10 @@ bool BareosSocket::two_way_authenticate(JobControlRecord *jcr,
auth_success = cram_md5_handshake.DoHandshake(initiated_by_remote);

if (!auth_success) {
Jmsg(jcr,
M_FATAL,
0,
Jmsg(jcr, M_FATAL, 0,
_("Authorization key rejected by %s %s.\n"
"Please see %s for help.\n"),
what,
identity,
MANUAL_AUTH_URL);
what, identity, MANUAL_AUTH_URL);
goto auth_fatal;
}

Expand Down Expand Up @@ -394,11 +390,7 @@ bool BareosSocket::two_way_authenticate(JobControlRecord *jcr,
}
}
if (!initiated_by_remote) {
#ifdef HAVE_OPENSSL
TlsLogConninfo(jcr, GetTlsConnection(), host(), port(), who());
#else
TlsLogConninfo(jcr, GetTlsConnection(), host(), port(), who());
#endif
}
auth_fatal:
if (tid) {
Expand Down

0 comments on commit 01c2c6a

Please sign in to comment.