Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
Description
Value returned from a function is not checked for errors before being used
Defect 72710 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/db/commands/user_management_commands.cpp
Function mongo::<unnamed>::updateAuthzDocuments(mongo::OperationContext *, const mongo::NamespaceString &, const mongo::BSONObj &, const mongo::BSONObj &, bool, bool, const mongo::BSONObj &, int *)
/src/mongo/db/commands/user_management_commands.cpp, line: 314
Calling "runCommand" without checking return value (as is done elsewhere 75 out of 104 times).
client.runCommand("admin", gleBuilder.done(), res);
|