From 9d3c8084281791732724653bba108c3154482c56 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 6 Dec 2003 23:54:22 +0000 Subject: [PATCH] Fix bogus free --- servers/slapd/overlays/pcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5