X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fdelete.c;h=d8ce99e149cd80b84ac2dae2c5fe915e7852a4fd;hb=b898f1271db5021e1873e38e1498a99d9450b646;hp=cac083f71ec270425684f69f18994f772af7ec88;hpb=d611a4b49a00238ed32ae84c68f27c6a0ef2273a;p=openldap diff --git a/libraries/libldap/delete.c b/libraries/libldap/delete.c index cac083f71e..d8ce99e149 100644 --- a/libraries/libldap/delete.c +++ b/libraries/libldap/delete.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2004 The OpenLDAP Foundation. + * Copyright 1998-2010 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -15,15 +15,6 @@ /* Portions Copyright (c) 1990 Regents of the University of Michigan. * All rights reserved. */ -/* - * Portions Copyright (C) The Internet Society (1997) - * ASN.1 fragments are from RFC 2251; see RFC for full legal notices. - */ - -/* - * A delete request looks like this: - * DelRequet ::= DistinguishedName, - */ #include "portable.h" @@ -35,6 +26,12 @@ #include "ldap-int.h" +/* + * A delete request looks like this: + * DelRequet ::= DistinguishedName, + */ + + /* * ldap_delete_ext - initiate an ldap extended delete operation. Parameters: * @@ -123,7 +120,7 @@ ldap_delete_ext_s( if( rc != LDAP_SUCCESS ) return( ld->ld_errno ); - if ( ldap_result( ld, msgid, 1, (struct timeval *) NULL, &res ) == -1 ) + if ( ldap_result( ld, msgid, LDAP_MSG_ALL, (struct timeval *) NULL, &res ) == -1 || !res ) return( ld->ld_errno ); return( ldap_result2error( ld, res, 1 ) );