From: Howard Chu Date: Sat, 6 Dec 2003 23:54:22 +0000 (+0000) Subject: Fix bogus free X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~246 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d3c8084281791732724653bba108c3154482c56;p=openldap Fix bogus free --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 2055816b91..f24ada9560 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -1434,7 +1434,8 @@ proxy_cache_search( } if ( oc_attr_absent ) { query.attrs[ count ].an_desc = slap_schema.si_ad_objectClass; - query.attrs[ count ].an_name = query.attrs[count].an_desc->ad_cname; + ber_dupbv( &query.attrs[count].an_name, + &slap_schema.si_ad_objectClass->ad_cname ); count++; } query.attrs[ count ].an_name.bv_val = NULL;