diff options
Diffstat (limited to 'src/mongo/client/sasl_sspi.cpp')
-rw-r--r-- | src/mongo/client/sasl_sspi.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mongo/client/sasl_sspi.cpp b/src/mongo/client/sasl_sspi.cpp index 42963e68b0f..f904eaa24a7 100644 --- a/src/mongo/client/sasl_sspi.cpp +++ b/src/mongo/client/sasl_sspi.cpp @@ -476,12 +476,10 @@ MONGO_INITIALIZER_WITH_PREREQUISITES(SaslSspiClientPlugin, (InitializerContext*) { int ret = sasl_client_add_plugin(sspiPluginName, sspiClientPluginInit); if (SASL_OK != ret) { - return Status(ErrorCodes::UnknownError, - str::stream() << "could not add SASL Client SSPI plugin " << sspiPluginName - << ": " << sasl_errstring(ret, nullptr, nullptr)); + uasserted(ErrorCodes::UnknownError, + str::stream() << "could not add SASL Client SSPI plugin " << sspiPluginName + << ": " << sasl_errstring(ret, nullptr, nullptr)); } - - return Status::OK(); } MONGO_INITIALIZER_WITH_PREREQUISITES(SaslPlainClientPlugin, @@ -489,12 +487,10 @@ MONGO_INITIALIZER_WITH_PREREQUISITES(SaslPlainClientPlugin, (InitializerContext*) { int ret = sasl_client_add_plugin("PLAIN", plain_client_plug_init); if (SASL_OK != ret) { - return Status(ErrorCodes::UnknownError, - str::stream() << "Could not add SASL Client PLAIN plugin " << sspiPluginName - << ": " << sasl_errstring(ret, nullptr, nullptr)); + uasserted(ErrorCodes::UnknownError, + str::stream() << "Could not add SASL Client PLAIN plugin " << sspiPluginName + << ": " << sasl_errstring(ret, nullptr, nullptr)); } - - return Status::OK(); } } // namespace |