X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fdelete.c;h=241de1a37c759fc2a2e0e315284edba2ab1483b5;hb=7887ef7e92a4b91d20814242322dfc33d3ebb0ee;hp=6d463e17f6ef8c540e909609502cc6e71711d896;hpb=403f4479bc9f9a864122d4aeecf7284408918302;p=openldap diff --git a/libraries/libldap/delete.c b/libraries/libldap/delete.c index 6d463e17f6..241de1a37c 100644 --- a/libraries/libldap/delete.c +++ b/libraries/libldap/delete.c @@ -1,6 +1,6 @@ /* $OpenLDAP$ */ /* - * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ /* Portions @@ -45,6 +45,7 @@ ldap_delete_ext( LDAPControl **cctrls, int *msgidp ) { + int rc; BerElement *ber; Debug( LDAP_DEBUG_TRACE, "ldap_delete\n", 0, 0, 0 ); @@ -54,6 +55,10 @@ ldap_delete_ext( assert( dn != NULL ); assert( msgidp != NULL ); + /* check client controls */ + rc = ldap_int_client_controls( ld, cctrls ); + if( rc != LDAP_SUCCESS ) return rc; + /* create a message to send */ if ( (ber = ldap_alloc_ber_with_options( ld )) == NULL ) { ld->ld_errno = LDAP_NO_MEMORY; @@ -74,7 +79,7 @@ ldap_delete_ext( return ld->ld_errno; } - if ( ber_printf( ber, /*{*/ "}" ) == -1 ) { + if ( ber_printf( ber, /*{*/ "N}" ) == -1 ) { ld->ld_errno = LDAP_ENCODING_ERROR; ber_free( ber, 1 ); return( ld->ld_errno );