From 546cba035cdac4fb7c219facbac3f3912974e5ba Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 21 May 2005 14:51:37 +0000 Subject: [PATCH] add comment on slap_dummy_bv --- servers/slapd/attr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/attr.c b/servers/slapd/attr.c index cdfb3a2fe5..63973e03cf 100644 --- a/servers/slapd/attr.c +++ b/servers/slapd/attr.c @@ -46,6 +46,10 @@ attr_free( Attribute *a ) if ( a->a_nvals && a->a_nvals != a->a_vals ) { 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 ) { ber_bvarray_free( a->a_vals ); }