-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Shell
-
Fully Compatible
-
ALL
-
Repl 2019-01-28
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Value returned from a function is not checked for errors before being used
Defect 105216 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/scripting/mozjs/session.cpp
Function mongo::mozjs::<unnamed>::endSession(mongo::mozjs::SessionHolder *)
/src/mongo/scripting/mozjs/session.cpp, line: 130
Calling "runCommand" without checking return value (as is done elsewhere 23 out of 43 times).
holder->client->runCommand("admin", abortObj, out);