diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-08-18 16:29:47 -0400 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-08-18 16:29:51 -0400 |
commit | d0dcca35cb84887a410cf50e3070560c9feb6aa1 (patch) | |
tree | 8bbd5e95518989e8e51c2b4ec4f470516b8471df /src/mongo | |
parent | add69c51cf4469ec44db4bae7d21c25da23adbe2 (diff) | |
download | mongo-d0dcca35cb84887a410cf50e3070560c9feb6aa1.tar.gz |
SERVER-19926 fix use after free in saslClientAuthenticate
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/client/sasl_client_authenticate_impl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/client/sasl_client_authenticate_impl.cpp b/src/mongo/client/sasl_client_authenticate_impl.cpp index a2dbc2f0888..aa4d7e64838 100644 --- a/src/mongo/client/sasl_client_authenticate_impl.cpp +++ b/src/mongo/client/sasl_client_authenticate_impl.cpp @@ -167,7 +167,7 @@ void asyncSaslConversation(auth::RunCommandHook runCommand, const std::shared_ptr<SaslClientSession>& session, const BSONObj& saslCommandPrefix, const BSONObj& inputObj, - StringData targetDatabase, + std::string targetDatabase, int saslLogLevel, auth::AuthCompletionHandler handler) { // Extract payload from previous step @@ -199,7 +199,7 @@ void asyncSaslConversation(auth::RunCommandHook runCommand, commandBuilder.append(conversationId); auto request = RemoteCommandRequest(); - request.dbname = targetDatabase.toString(); + request.dbname = targetDatabase; request.cmdObj = commandBuilder.obj(); // Asynchronously continue the conversation @@ -236,7 +236,7 @@ void asyncSaslConversation(auth::RunCommandHook runCommand, session, std::move(saslFollowupCommandPrefix), std::move(serverResponse), - targetDatabase, + std::move(targetDatabase), saslLogLevel, handler); }); |