[SERVER-72364] Coverity analysis defect 134414: Dereference after null check Created: 22/Dec/22  Updated: 29/Oct/23  Resolved: 25/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Jennifer Wang (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2023-07-24, Service Arch 2023-08-07
Participants:

 Description   

Dereference after null check

Either the check against null is unnecessary, or there may be a null pointer dereference. Pointer is checked against null but then dereferenced anyway
/src/mongo/transport/asio_transport_layer.cpp:1598: FORWARD_NULL 134414 Calling "manager.operator bool()" implies that "manager" might be null-like.



 Comments   
Comment by Githook User [ 25/Jul/23 ]

Author:

{'name': 'Jennifer Wang', 'email': '72620441+Jennifer-WW@users.noreply.github.com', 'username': 'Jennifer-WW'}

Message: SERVER-72364 Verify that SSL manager exists before accessing it
Branch: master
https://github.com/mongodb/mongo/commit/c349327d2e27fcff44d0de77313d3bf4ef4a8400

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