diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/client/sasl_client_session.cpp | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/client/sasl_client_session.cpp')
| -rw-r--r-- | src/mongo/client/sasl_client_session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/sasl_client_session.cpp b/src/mongo/client/sasl_client_session.cpp index 4c92134a094..f1be7a64b10 100644 --- a/src/mongo/client/sasl_client_session.cpp +++ b/src/mongo/client/sasl_client_session.cpp @@ -54,7 +54,7 @@ void SaslClientSession::setParameter(Parameter id, StringData value) { // Note that we append a terminal NUL to buffer.data, so it may be treated as a C-style // string. This is required for parameterServiceName, parameterServiceHostname, // parameterMechanism and parameterUser. - value.copyTo(buffer.data.get(), true); + str::copyAsCString(buffer.data.get(), value); } bool SaslClientSession::hasParameter(Parameter id) { |
