]> git.sur5r.net Git - openldap/commitdiff
Fix compile errors
authorKurt Zeilenga <kurt@openldap.org>
Sun, 6 Jan 2002 00:35:01 +0000 (00:35 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 6 Jan 2002 00:35:01 +0000 (00:35 +0000)
servers/slapd/back-ldbm/search.c

index 36f8bc0a7a84bcfa75d8fbf7378933db082c5adf..84653d65c20d51f8f399dae001550eb11c20065d 100644 (file)
@@ -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 );