-
Type:
Bug
-
Resolution: Done
-
Priority:
Trivial - P5
-
Affects Version/s: None
-
Component/s: Networking
-
Fully Compatible
-
ALL
-
Platforms 16 (06/24/16), Platforms 17 (07/15/16)
-
None
-
None
-
None
-
None
-
None
-
None
-
None
I suspect that this fassert is incorrect. It seams that -1 is the invalid value and that 0 and higher are valid values.
diff --git a/src/mongo/util/net/sock.cpp b/src/mongo/util/net/sock.cpp
index bdab735..b88747b 100644
--- a/src/mongo/util/net/sock.cpp
+++ b/src/mongo/util/net/sock.cpp
@@ -493,7 +493,7 @@ namespace mongo {
std::string Socket::doSSLHandshake(const char* firstBytes, int len) {
if (!_sslManager) return "";
- fassert(16506, _fd);
+ fassert(16506, _fd >=0 );
if (_sslConnection.get()) {
throw SocketException(SocketException::RECV_ERROR,
"Attempt to call SSL_accept on already secure Socket from " +