]> git.sur5r.net Git - openldap/commitdiff
ITS#4917 preserve old sat_ad_mutex
authorHoward Chu <hyc@openldap.org>
Tue, 24 Apr 2007 12:02:53 +0000 (12:02 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 24 Apr 2007 12:02:53 +0000 (12:02 +0000)
servers/slapd/at.c

index 047d6498390279a92651a6987624e3f0b3de396d..dab8ebd927b1052b36a8fa0ad6c7c1e90bc459fb 100644 (file)
@@ -459,6 +459,7 @@ at_insert(
                                
                                /* Keep old oid, free new oid;
                                 * Keep old ads, free new ads;
+                                * Keep old ad_mutex, free new ad_mutex;
                                 * Keep new everything else, free old
                                 */
                                tmp = *old_sat;
@@ -467,6 +468,8 @@ at_insert(
                                tmp.sat_oid = sat->sat_oid;
                                old_sat->sat_ad = tmp.sat_ad;
                                tmp.sat_ad = sat->sat_ad;
+                               old_sat->sat_ad_mutex = tmp.sat_ad_mutex;
+                               tmp.sat_ad_mutex = sat->sat_ad_mutex;
                                *sat = tmp;
 
                                /* Check for basic ad pointing at old cname */