From: Kurt Zeilenga Date: Fri, 16 Jul 1999 01:52:56 +0000 (+0000) Subject: Fix all user attributes bug X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6f72de8c8c86b44c9a011a7d8ccefe73d48f9238;p=openldap Fix all user attributes bug --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index ef7736399e..a3b621af95 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -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];