Skip to content

Commit f9fa0ca

Browse files
CXX-401 Use SCRAM for wire version 3
1 parent abffb22 commit f9fa0ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongo/client/dbclient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ namespace mongo {
930930
bool digestPassword) {
931931
try {
932932
const char* mech = "MONGODB-CR";
933-
if( _maxWireVersion > 3 ) {
933+
if( _maxWireVersion >= 3 ) {
934934
mech = "SCRAM-SHA-1";
935935
}
936936
_auth(BSON(saslCommandMechanismFieldName << mech <<

0 commit comments

Comments
 (0)