Unchecked return value
If the function returns an error value, the error value may be mistaken for a normal value. Value returned from a function is not checked for errors before being used
/src/mongo/db/auth/authz_manager_external_state_local.cpp:407: CHECKED_RETURN 116503 Calling "addPrivilegesForBuiltinRole" without checking return value (as is done elsewhere 2 out of 4 times).
- depends on
-
SERVER-51837 Coverity analysis defect 116502: Unchecked return value
- Closed