[SERVER-23745] Coverity analysis defect 98538: Unchecked return value Created: 15/Apr/16  Updated: 26/Apr/16  Resolved: 15/Apr/16

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Shane Harvey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Value returned from a function is not checked for errors before being used

Defect 98538 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/client/connection_pool.cpp
Function mongo::ConnectionPool::acquireConnection(const mongo::HostAndPort &, mongo::Date_t, std::chrono::duration<long, std::ratio<(long)1, (long)1000>>)
/src/mongo/client/connection_pool.cpp, line: 191
Calling "authenticateInternalUser" without checking return value (as is done elsewhere 3 out of 5 times).

            conn->authenticateInternalUser();



 Comments   
Comment by Githook User [ 15/Apr/16 ]

Author:

{u'username': u'ShaneHarvey', u'name': u'Shane Harvey', u'email': u'shane.harvey@mongodb.com'}

Message: SERVER-23745 Fix coverity 98538, unchecked return value
Branch: master
https://github.com/mongodb/mongo/commit/661f125d27fe64fcde604ace724e681a078f9b6a

Comment by Eric Milkie [ 15/Apr/16 ]

https://coverity.mongodb.com/reports.htm#v10632/p10001/fileInstanceId=12363316&defectInstanceId=8042505&mergedDefectId=98538

Generated at Thu Feb 08 04:04:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.