From: Kurt Zeilenga Date: Sun, 6 Jan 2002 00:35:01 +0000 (+0000) Subject: Fix compile errors X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~268 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95082964fcd1f9ba337d3d8f6896870427999c9d;p=openldap Fix compile errors --- diff --git a/servers/slapd/back-ldbm/search.c b/servers/slapd/back-ldbm/search.c index 36f8bc0a7a..84653d65c2 100644 --- a/servers/slapd/back-ldbm/search.c +++ b/servers/slapd/back-ldbm/search.c @@ -127,10 +127,12 @@ ldbm_back_search( if (!manageDSAit && is_entry_referral( e ) ) { /* entry is a referral, don't allow add */ struct berval matched_dn; + BVarray erefs; + BVarray refs; ber_dupbv( &matched_dn, &e->e_name ); - BVarray erefs = get_entry_referrals( be, conn, op, e ); - BVarray refs = NULL; + erefs = get_entry_referrals( be, conn, op, e ); + refs = NULL; cache_return_entry_r( &li->li_cache, e );