]> git.sur5r.net Git - openldap/commitdiff
Fix all user attributes bug
authorKurt Zeilenga <kurt@openldap.org>
Fri, 16 Jul 1999 01:52:56 +0000 (01:52 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 16 Jul 1999 01:52:56 +0000 (01:52 +0000)
servers/slapd/result.c

index ef7736399e3145895c75bdf45889645ca00f97a6..a3b621af95c94d7970a49a3e588edd4e5b015835 100644 (file)
@@ -540,7 +540,9 @@ send_search_entry(
        }
 
        /* check for special all user attributes ("*") attribute */
-       allattrs = charray_inlist( attrs, LDAP_ALL_USER_ATTRIBUTES );
+       allattrs = attrs == NULL
+               ? 1
+               : charray_inlist( attrs, LDAP_ALL_USER_ATTRIBUTES );
 
        for ( a = e->e_attrs; a != NULL; a = a->a_next ) {
                regmatch_t       matches[MAXREMATCHES];