[SERVER-71606] Pass const int* instead of timeval* for LDAP_OPT_TIMELIMIT Created: 24/Nov/22  Updated: 29/Oct/23  Resolved: 06/Dec/22

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

Type: Bug Priority: Major - P3
Reporter: Varun Ravichandran Assignee: Militsa Sotirova
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-16184 [Server] Investigate changes in SERVE... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2022-12-12
Participants:

 Description   

When LDAP_OPT_TIMELIMIT is set, OpenLDAP casts the value provided to a const int* (see here). Currently, we pass in the address to timeout, which is of type timeval

We should pass the correct type here to avoid unexpected behavior due to casting.



 Comments   
Comment by Githook User [ 06/Dec/22 ]

Author:

{'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}

Message: SERVER-71606 Pass const int* instead of timeval* for LDAP_OPT_TIMELIMIT
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/23bf1977ab458221edebcc1574e3d267dfcdadfd

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