Value returned from a function is not checked for errors before being used
Defect 86186 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/db/modules/enterprise/src/ldap/ldap_query.cpp
Function mongo::LDAPQuery::instantiateQuery(const mongo::UserNameSubstitutionLDAPQueryConfig &, mongo::StringData)
/src/mongo/db/modules/enterprise/src/ldap/ldap_query.cpp, line: 46
Calling "GlobalReplace" without checking return value (as is done elsewhere 3 out of 5 times).
kUserNameMatchToken.GlobalReplace(userName.toString(), &instance._baseDN);
File: /src/mongo/db/modules/enterprise/src/ldap/ldap_query.cpp
Function mongo::LDAPQuery::instantiateQuery(const mongo::UserNameSubstitutionLDAPQueryConfig &, mongo::StringData)
/src/mongo/db/modules/enterprise/src/ldap/ldap_query.cpp, line: 47
Calling "GlobalReplace" without checking return value (as is done elsewhere 3 out of 5 times).
kUserNameMatchToken.GlobalReplace(userName.toString(), &instance._filter);