Hans Leidekker (@hans) commented about dlls/wldap32/init.c:
if (!(url = urlify_hostnames( "cldap://", hostnameU, portnumber ))) goto exit; ld = create_context( url );
- if (ld) ld->ld_host = strUtoW( hostnameU );
Checking for allocation failure would be nice.