Skip to content

Commit 5713339

Browse files
committed
CXX-369 call ismaster when SSL is enabled
1 parent e3a7573 commit 5713339

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/mongo/client/dbclient.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,8 +1394,10 @@ namespace mongo {
13941394
}
13951395

13961396
#ifdef MONGO_SSL
1397-
if (client::Options::current().SSLEnabled())
1398-
return p->secure( sslManager(), _server.host() );
1397+
if (client::Options::current().SSLEnabled() &&
1398+
!p->secure(sslManager(), _server.host()) {
1399+
return false;
1400+
}
13991401
#endif
14001402
BSONObj info;
14011403
bool worked = simpleCommand("admin", &info, "ismaster");

0 commit comments

Comments
 (0)