]> git.sur5r.net Git - openldap/commitdiff
Fix bogus free
authorHoward Chu <hyc@openldap.org>
Sat, 6 Dec 2003 23:54:22 +0000 (23:54 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 6 Dec 2003 23:54:22 +0000 (23:54 +0000)
servers/slapd/overlays/pcache.c

index 2055816b916ea6db02cae513d2ab575415acba96..f24ada9560a0981c9b265f9d2823c80936be2b12 100644 (file)
@@ -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;