X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fgetentry.c;h=37e601a6f521513f0491886cf58c3b212ddd3e08;hb=ffa4b2634389ecc129f59a1de05d44f62b6bb871;hp=2cf17681d8cb2f18fe724e7c5fe601e13f1b3658;hpb=29d9fa20a2823c827f098d78f1ea8539d86bf4cf;p=openldap diff --git a/libraries/libldap/getentry.c b/libraries/libldap/getentry.c index 2cf17681d8..37e601a6f5 100644 --- a/libraries/libldap/getentry.c +++ b/libraries/libldap/getentry.c @@ -1,6 +1,6 @@ /* $OpenLDAP$ */ /* - * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ /* Portions @@ -15,7 +15,6 @@ #include #include -#include #include #include #include @@ -99,13 +98,13 @@ ldap_get_entry_controls( assert( sctrls != NULL ); if ( ld == NULL || sctrls == NULL || - entry == NULL || entry->lm_msgtype == LDAP_RES_SEARCH_ENTRY ) + entry == NULL || entry->lm_msgtype != LDAP_RES_SEARCH_ENTRY ) { return LDAP_PARAM_ERROR; } /* make a local copy of the BerElement */ - SAFEMEMCPY(&be, entry->lm_ber, sizeof(be)); + AC_MEMCPY(&be, entry->lm_ber, sizeof(be)); if ( ber_scanf( &be, "{xx" /*}*/ ) == LBER_ERROR ) { rc = LDAP_DECODING_ERROR;