[SERVER-33467] Do not free memory returned by ldap_get_option(LDAP_OPT_ERROR_STRING) on Windows Created: 23/Feb/18  Updated: 29/Oct/23  Resolved: 15/Mar/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.6.0
Fix Version/s: 3.6.4, 3.7.4

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Spencer Jackson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6
Sprint: Platforms 2018-03-12, Platforms 2018-03-26
Participants:
Case:

 Description   

On Windows, when ldap_get_option is called with LDAP_OPT_ERROR_STRING, the returned value should not be freed.

With OpenLDAP, the returned value should be freed.

This was a regression introduced in SERVER-28388.



 Comments   
Comment by Githook User [ 15/Mar/18 ]

Author:

{'email': 'spencer.jackson@mongodb.com', 'name': 'Spencer Jackson', 'username': 'spencerjackson'}

Message: SERVER-33467: Do not free LDAP error strings on Windows

(cherry picked from commit b8ac48ec9e12863bb818c70d8930db194308dd30)
Branch: v3.6
https://github.com/10gen/mongo-enterprise-modules/commit/afc8f900ad7ab241a048f973f0053f5dccccb70a

Comment by Githook User [ 15/Mar/18 ]

Author:

{'email': 'spencer.jackson@mongodb.com', 'name': 'Spencer Jackson', 'username': 'spencerjackson'}

Message: SERVER-33467: Do not free LDAP error strings on Windows
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/b8ac48ec9e12863bb818c70d8930db194308dd30

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