Skip to content

Commit bccca93

Browse files
psarkar-datosJens-G
authored andcommitted
THRIFT-5725: Fix the comparison check for bio_get_fd
Client: cpp Patch: Prasenjit Sarkar This closes #2831
1 parent ff9850e commit bccca93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cpp/src/thrift/transport/TSSLSocket.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ unsigned int TSSLSocket::waitForEvent(bool wantRead) {
825825
throw TSSLException("SSL_get_?bio returned nullptr");
826826
}
827827

828-
if (BIO_get_fd(bio, &fdSocket) <= 0) {
828+
if (BIO_get_fd(bio, &fdSocket) < 0) {
829829
throw TSSLException("BIO_get_fd failed");
830830
}
831831

0 commit comments

Comments
 (0)