From: Howard Chu Date: Tue, 24 Apr 2007 12:02:53 +0000 (+0000) Subject: ITS#4917 preserve old sat_ad_mutex X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~526 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8ac19f0847a3218123bf499045aa0fdb81c85d61;p=openldap ITS#4917 preserve old sat_ad_mutex --- diff --git a/servers/slapd/at.c b/servers/slapd/at.c index 047d649839..dab8ebd927 100644 --- a/servers/slapd/at.c +++ b/servers/slapd/at.c @@ -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 */