Hans Leidekker : wldap32: Properly initialize the context in ldap_sslinitW.

Alexandre Julliard julliard at winehq.org
Tue Jan 19 15:44:01 CST 2021


Module: wine
Branch: master
Commit: be34e08a875431df144d2cebd02fcb01987f9bc4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=be34e08a875431df144d2cebd02fcb01987f9bc4

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Jan 19 15:55:31 2021 +0100

wldap32: Properly initialize the context in ldap_sslinitW.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wldap32/init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wldap32/init.c b/dlls/wldap32/init.c
index afaef3b52f2..0072ede6772 100644
--- a/dlls/wldap32/init.c
+++ b/dlls/wldap32/init.c
@@ -567,9 +567,9 @@ WLDAP32_LDAP * CDECL ldap_sslinitW( PWCHAR hostname, ULONG portnumber, int secur
         url = urlify_hostnames( "ldaps://", hostnameU, portnumber );
     else
         url = urlify_hostnames( "ldap://", hostnameU, portnumber );
-
     if (!url) goto exit;
-    ldap_initialize( &ld->ld, url );
+
+    ld = create_context( url );
 
 exit:
     strfreeU( hostnameU );




More information about the wine-cvs mailing list