From: Howard Chu Date: Thu, 6 Nov 2008 16:27:01 +0000 (+0000) Subject: ITS#5783 / 5795 fix undef_promote X-Git-Tag: ACLCHECK_0~1149 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b28aa117eaa6abe06a8c519a446e32ec71eac579;p=openldap ITS#5783 / 5795 fix undef_promote --- diff --git a/servers/slapd/ad.c b/servers/slapd/ad.c index e17aecb9e8..b43df86ca6 100644 --- a/servers/slapd/ad.c +++ b/servers/slapd/ad.c @@ -817,7 +817,10 @@ undef_promote( *u_ad = (*u_ad)->ad_next; + tmp->ad_type = nat; tmp->ad_next = NULL; + /* ad_cname was contiguous, no leak here */ + tmp->ad_cname = nat->sat_cname; *n_ad = tmp; n_ad = &tmp->ad_next; } else {