X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fopen.c;h=e8785387f5507c4cb7b6f3328e1953b70d51ef4e;hb=403f4479bc9f9a864122d4aeecf7284408918302;hp=419b4277e0cca5b215c193fe9fd04a0d034cfdee;hpb=70fe83b1d25fa0aa3140b443fcbf2e6e13cfd72f;p=openldap diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 419b4277e0..e8785387f5 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -1,3 +1,4 @@ +/* $OpenLDAP$ */ /* * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file @@ -236,13 +237,13 @@ open_ldap_connection( LDAP *ld, Sockbuf *sb, const char *host, int defport, port = defport; } - if (( rc = ldap_connect_to_host( sb, curhost, 0L, + if (( rc = ldap_connect_to_host( ld, sb, curhost, 0L, port, async )) != -1 ) { break; } } } else { - rc = ldap_connect_to_host( sb, NULL, htonl( INADDR_LOOPBACK ), + rc = ldap_connect_to_host( ld, sb, 0, htonl( INADDR_LOOPBACK ), defport, async ); }