From: Pierangelo Masarati Date: Fri, 1 Sep 2006 13:57:37 +0000 (+0000) Subject: don't use deprecated functions X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~226 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d1e00eef0376ec6b5112d2a8c0cac9c6b157d31d;p=openldap don't use deprecated functions --- diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 785260a5d8..91368ec978 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -387,7 +387,8 @@ ldap_int_open_connection( } -int ldap_open_internal_connection( LDAP **ldp, ber_socket_t *fdp ) +int +ldap_open_internal_connection( LDAP **ldp, ber_socket_t *fdp ) { int rc; LDAPConn *c; @@ -402,7 +403,7 @@ int ldap_open_internal_connection( LDAP **ldp, ber_socket_t *fdp ) /* Make it appear that a search request, msgid 0, was sent */ lr = (LDAPRequest *)LDAP_CALLOC( 1, sizeof( LDAPRequest )); if( lr == NULL ) { - ldap_unbind( *ldp ); + ldap_unbind_ext( *ldp, NULL, NULL ); *ldp = NULL; return( LDAP_NO_MEMORY ); } @@ -416,7 +417,7 @@ int ldap_open_internal_connection( LDAP **ldp, ber_socket_t *fdp ) /* Attach the passed socket as the *LDAP's connection */ c = ldap_new_connection( *ldp, NULL, 1, 0, NULL); if( c == NULL ) { - ldap_unbind( *ldp ); + ldap_unbind_ext( *ldp, NULL, NULL ); *ldp = NULL; return( LDAP_NO_MEMORY ); }