Skip to content

Commit

Permalink
[XrdTls] Fix slc6 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Oct 9, 2019
1 parent 0ce524f commit b79d628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdTls/XrdTlsSocket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,9 @@ XrdTls::RC XrdTlsSocket::Write( const char *buffer, size_t size,
// We have a potential error. Get the SSL error code and whether or
// not the handshake actually is finished (semi-accurate)
//
pImpl->hsDone = bool( SSL_is_init_finished( pImpl->ssl ) );
if( error == XrdTls::RC::TLS_AOK ) bytesWritten = 0;
error = Diagnose(SSL_get_error( pImpl->ssl, rc ));
if( error == XrdTls::RC::TLS_AOK ) bytesWritten = 0;
pImpl->hsDone = bool( SSL_is_init_finished( pImpl->ssl ) );

// The connection creator may wish that we wait for the handshake to
// complete. This is a tricky issue for non-blocking bio's as a write
Expand Down

0 comments on commit b79d628

Please sign in to comment.