[SERVER-51838] Coverity analysis defect 116503: Unchecked return value Created: 26/Oct/20  Updated: 02/Nov/20  Resolved: 02/Nov/20

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Sara Golemon
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-51837 Coverity analysis defect 116502: Unch... Closed
Operating System: ALL
Sprint: Security 2020-11-16
Participants:

 Description   

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).



 Comments   
Comment by Sara Golemon [ 02/Nov/20 ]

Merging this with SERVER-51837 which is the exact same method call with the exact same reason why it can never fail.

Generated at Thu Feb 08 05:26:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.