]> git.sur5r.net Git - openldap/commitdiff
All text messages to be returned with LDAPv2 search results when
authorKurt Zeilenga <kurt@openldap.org>
Mon, 25 Oct 1999 00:00:23 +0000 (00:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 25 Oct 1999 00:00:23 +0000 (00:00 +0000)
no referrals need to be returned.

servers/slapd/result.c

index 3f28d4b6545f0b68f5aab87fdf645ef6e8d550a5..31b130aef5c714ecb5ea8a1f09c46916d3cdcd74 100644 (file)
@@ -450,9 +450,10 @@ send_search_result(
                }
 
                tmp = v2ref( refs );
-               text = tmp;
                refs = NULL;
 
+               if( tmp != NULL ) text = tmp;
+
        } else {
                /* don't send references in search results */
                assert( refs == NULL );
@@ -503,7 +504,6 @@ send_search_entry(
        BerElement      *ber;
        Attribute       *a;
        int             i, rc=-1, bytes;
-       AccessControl   *acl;
        char            *edn;
        int             userattrs;
        int             opattrs;
@@ -549,8 +549,6 @@ send_search_entry(
                : charray_inlist( attrs, LDAP_ALL_OPERATIONAL_ATTRIBUTES );
 
        for ( a = e->e_attrs; a != NULL; a = a->a_next ) {
-               regmatch_t       matches[MAXREMATCHES];
-
                if ( attrs == NULL ) {
                        /* all addrs request, skip operational attributes */
                        if( !opattrs && oc_check_operational_attr( a->a_type ) ) {
@@ -625,8 +623,6 @@ send_search_entry(
        a = backend_subschemasubentry( be );
        
        do {
-               regmatch_t       matches[MAXREMATCHES];
-
                if ( attrs == NULL ) {
                        /* all addrs request, skip operational attributes */
                        if( !opattrs && oc_check_operational_attr( a->a_type ) ) {