wldap32: Properly initialize the context in ldap_sslinitW.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2021-01-19 15:55:31 +01:00 committed by Alexandre Julliard
parent 82a9e80063
commit be34e08a87
1 changed files with 2 additions and 2 deletions

View File

@ -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 );