X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Freferences.c;h=a5e5afefd0def458478250a28e0622eb8ca1697e;hb=e4f2c9425afc0f594212aa1697bad779733b96b9;hp=01fc0763046851d0e91d633c16d5e3884bf11ce1;hpb=29d9fa20a2823c827f098d78f1ea8539d86bf4cf;p=openldap diff --git a/libraries/libldap/references.c b/libraries/libldap/references.c index 01fc076304..a5e5afefd0 100644 --- a/libraries/libldap/references.c +++ b/libraries/libldap/references.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 */ /* @@ -13,7 +13,6 @@ #include -#include #include #include #include @@ -106,7 +105,7 @@ ldap_parse_reference( } /* make a private copy of BerElement */ - SAFEMEMCPY(&be, ref->lm_ber, sizeof(be)); + AC_MEMCPY(&be, ref->lm_ber, sizeof(be)); if ( ber_scanf( &be, "{v" /*}*/, &refs ) == LBER_ERROR ) { rc = LDAP_DECODING_ERROR; @@ -132,7 +131,7 @@ free_and_return: *referralsp = refs; } else { - ldap_value_free( refs ); + LDAP_VFREE( refs ); } if( freeit ) {