mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
add comment on slap_dummy_bv
This commit is contained in:
parent
8592822aca
commit
546cba035c
@ -46,6 +46,10 @@ attr_free( Attribute *a )
|
|||||||
if ( a->a_nvals && a->a_nvals != a->a_vals ) {
|
if ( a->a_nvals && a->a_nvals != a->a_vals ) {
|
||||||
ber_bvarray_free( a->a_nvals );
|
ber_bvarray_free( a->a_nvals );
|
||||||
}
|
}
|
||||||
|
/* a_vals may be equal to slap_dummy_bv, a static empty berval;
|
||||||
|
* this is used as a placeholder for attributes that do not carry
|
||||||
|
* values, e.g. when proxying search entries with the "attrsonly"
|
||||||
|
* bit set. */
|
||||||
if ( a->a_vals != &slap_dummy_bv ) {
|
if ( a->a_vals != &slap_dummy_bv ) {
|
||||||
ber_bvarray_free( a->a_vals );
|
ber_bvarray_free( a->a_vals );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user