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:
parent
82a9e80063
commit
be34e08a87
|
@ -567,9 +567,9 @@ WLDAP32_LDAP * CDECL ldap_sslinitW( PWCHAR hostname, ULONG portnumber, int secur
|
||||||
url = urlify_hostnames( "ldaps://", hostnameU, portnumber );
|
url = urlify_hostnames( "ldaps://", hostnameU, portnumber );
|
||||||
else
|
else
|
||||||
url = urlify_hostnames( "ldap://", hostnameU, portnumber );
|
url = urlify_hostnames( "ldap://", hostnameU, portnumber );
|
||||||
|
|
||||||
if (!url) goto exit;
|
if (!url) goto exit;
|
||||||
ldap_initialize( &ld->ld, url );
|
|
||||||
|
ld = create_context( url );
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
strfreeU( hostnameU );
|
strfreeU( hostnameU );
|
||||||
|
|
Loading…
Reference in New Issue