mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix from Apurva
This commit is contained in:
parent
1ff440cfb2
commit
3b83a0b0a7
@ -1068,6 +1068,8 @@ add_filter_attrs(
|
|||||||
if (attrs == NULL) {
|
if (attrs == NULL) {
|
||||||
(*new_attrs)[0].an_name.bv_val = "*";
|
(*new_attrs)[0].an_name.bv_val = "*";
|
||||||
(*new_attrs)[0].an_name.bv_len = 1;
|
(*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;
|
alluser = 1;
|
||||||
allop = 0;
|
allop = 0;
|
||||||
} else {
|
} else {
|
||||||
@ -1075,11 +1077,11 @@ add_filter_attrs(
|
|||||||
(*new_attrs)[i].an_name = attrs[i].an_name;
|
(*new_attrs)[i].an_name = attrs[i].an_name;
|
||||||
(*new_attrs)[i].an_desc = attrs[i].an_desc;
|
(*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);
|
alluser = an_find(*new_attrs, &all_user);
|
||||||
allop = an_find(*new_attrs, &all_op);
|
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++ ) {
|
for ( i=0; filter_attrs[i].an_name.bv_val; i++ ) {
|
||||||
if ( an_find(*new_attrs, &filter_attrs[i].an_name ))
|
if ( an_find(*new_attrs, &filter_attrs[i].an_name ))
|
||||||
|
Loading…
Reference in New Issue
Block a user