Skip to content

Commit

Permalink
Fix problems that showed up in Fedora 29
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and franku committed Nov 9, 2018
1 parent d024e16 commit 404be80
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/dird/ua_cmds.cc
Expand Up @@ -474,7 +474,7 @@ bool Do_a_command(UaContext *ua)
return false;
}

while (ua->jcr->res.wstorage->size()) {
while (ua->jcr->res.wstorage && ua->jcr->res.wstorage->size()) {
ua->jcr->res.wstorage->remove(0);
}

Expand Down
1 change: 1 addition & 0 deletions core/src/lib/tls_openssl_private.cc
Expand Up @@ -49,6 +49,7 @@ TlsOpenSslPrivate::TlsOpenSslPrivate()
, tcp_file_descriptor_(0)
, pem_callback_(nullptr)
, pem_userdata_(nullptr)
, verify_peer_ (false)
{
Dmsg0(100, "Construct TlsOpenSslPrivate\n");
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/lib/try_tls_handshake_as_a_server.cc
Expand Up @@ -47,8 +47,8 @@ static bool CheckForCleartextConnection(BareosSocket *bs, ConfigurationParser *c
Dmsg0(100, "Client wants tls connection but cleartext is configured\n");
return false;
}
Dmsg0(100, "Client and Server want cleartext connection\n");
do_cleartext = cleartext_configured; /* this covers the other two cases */
Dmsg1(100, "Client and Server want %s connection\n", do_cleartext ? "cleartext" : "tls");
return true;
}

Expand Down

0 comments on commit 404be80

Please sign in to comment.