Skip to content

Commit

Permalink
THRIFT-5725: Fix the comparison check for bio_get_fd
Browse files Browse the repository at this point in the history
Client: cpp
Patch: Prasenjit Sarkar

This closes #2831
  • Loading branch information
psarkar-datos authored and Jens-G committed Jul 8, 2023
1 parent ff9850e commit bccca93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cpp/src/thrift/transport/TSSLSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ unsigned int TSSLSocket::waitForEvent(bool wantRead) {
throw TSSLException("SSL_get_?bio returned nullptr");
}

if (BIO_get_fd(bio, &fdSocket) <= 0) {
if (BIO_get_fd(bio, &fdSocket) < 0) {
throw TSSLException("BIO_get_fd failed");
}

Expand Down

0 comments on commit bccca93

Please sign in to comment.