From: Jong Hyuk Choi Date: Sat, 28 Jun 2003 00:36:27 +0000 (+0000) Subject: fix from Apurva X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~848 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3b83a0b0a7b3a32f6496181f034f426bde8ac29e;p=openldap fix from Apurva --- diff --git a/servers/slapd/back-meta/cache-search.c b/servers/slapd/back-meta/cache-search.c index d91680344b..97230dfc94 100644 --- a/servers/slapd/back-meta/cache-search.c +++ b/servers/slapd/back-meta/cache-search.c @@ -1068,6 +1068,8 @@ add_filter_attrs( if (attrs == NULL) { (*new_attrs)[0].an_name.bv_val = "*"; (*new_attrs)[0].an_name.bv_len = 1; + (*new_attrs)[1].an_name.bv_val = NULL; + (*new_attrs)[1].an_name.bv_len = 0; alluser = 1; allop = 0; } else { @@ -1075,11 +1077,11 @@ add_filter_attrs( (*new_attrs)[i].an_name = attrs[i].an_name; (*new_attrs)[i].an_desc = attrs[i].an_desc; } + (*new_attrs)[count].an_name.bv_val = NULL; + (*new_attrs)[count].an_name.bv_len = 0; alluser = an_find(*new_attrs, &all_user); allop = an_find(*new_attrs, &all_op); } - (*new_attrs)[count].an_name.bv_val = NULL; - (*new_attrs)[count].an_name.bv_len = 0; for ( i=0; filter_attrs[i].an_name.bv_val; i++ ) { if ( an_find(*new_attrs, &filter_attrs[i].an_name ))