Skip to content

Commit

Permalink
bsock: added a nullpointer guard
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed May 28, 2019
1 parent c141013 commit b675899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/lib/bsock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ bool BareosSocket::DoTlsHandshakeWithServer(TlsConfigCert* local_tls_cert,
int message_type = 0;
std::string message;

if (jcr->is_passive_client_connection_probing) {
if (jcr && jcr->is_passive_client_connection_probing) {
/* connection try */
message_type = M_INFO;
message = _("TLS negotiation failed (while probing client protocol)\n");
Expand Down

0 comments on commit b675899

Please sign in to comment.