https://bugs.winehq.org/show_bug.cgi?id=54724
Bug ID: 54724 Summary: LDAP bind over SSL to a server and port that do not support SSL hangs forever Product: Wine Version: 7.22 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: wldap32 Assignee: wine-bugs@winehq.org Reporter: alexhenrie24@gmail.com Distribution: ---
Created attachment 74229 --> https://bugs.winehq.org/attachment.cgi?id=74229 Test program
To reproduce, compile and run the attached program with:
x86_64-w64-mingw32-cc ldap.c -lwldap32 -o ldap.exe wine ldap.exe
The bind fails, but before Wine 7.22 an error code was returned instead of the bind function hanging forever. `git bisect` says:
d08d6f51040e18982612658a885af659fbfa4afe is the first bad commit commit d08d6f51040e18982612658a885af659fbfa4afe Author: Hans Leidekker hans@codeweavers.com Date: Tue Sep 20 13:06:43 2022 +0200
wldap32: Use the bundled liblber and libldap.
configure | 198 ++--------- configure.ac | 29 +- dlls/wldap32/Makefile.in | 7 +- dlls/wldap32/add.c | 15 +- dlls/wldap32/ber.c | 166 ++++----- dlls/wldap32/bind.c | 161 ++++----- dlls/wldap32/compare.c | 33 +- dlls/wldap32/control.c | 34 +- dlls/wldap32/delete.c | 15 +- dlls/wldap32/dn.c | 55 +-- dlls/wldap32/error.c | 91 +++-- dlls/wldap32/extended.c | 38 +- dlls/wldap32/init.c | 18 +- dlls/wldap32/libldap.c | 683 ------------------------------------ dlls/wldap32/libldap.h | 624 --------------------------------- dlls/wldap32/main.c | 6 - dlls/wldap32/misc.c | 131 +++---- dlls/wldap32/modify.c | 23 +- dlls/wldap32/modrdn.c | 9 +- dlls/wldap32/option.c | 80 ++--- dlls/wldap32/page.c | 38 +- dlls/wldap32/parse.c | 88 ++--- dlls/wldap32/rename.c | 20 +- dlls/wldap32/search.c | 57 ++- dlls/wldap32/tests/ber.c | 2 +- dlls/wldap32/value.c | 40 +-- dlls/wldap32/winldap_private.h | 776 +++++++++++++++++++++++++++++------------ include/config.h.in | 12 - 28 files changed, 1087 insertions(+), 2362 deletions(-) delete mode 100644 dlls/wldap32/libldap.c delete mode 100644 dlls/wldap32/libldap.h