Commit cee9a36e authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#6326

parent b70b48c4
......@@ -3,6 +3,7 @@ OpenLDAP 2.4 Change Log
OpenLDAP 2.4.20 Engineering
Fixed libldap uninitialized return value (ITS#6355)
Fixed slapd debug handling of LDAP_DEBUG_ANY (ITS#6324)
Fixed slapd-ldap leak (ITS#6326)
Documentation
ldap_get_dn(3) typos (ITS#5366)
......
......@@ -759,6 +759,7 @@ ldap_build_entry(
( oc = oc_bvfind_undef( &attr->a_vals[i] ) ) != NULL )
{
ber_dupbv( &pval, &oc->soc_cname );
rc = LDAP_SUCCESS;
} else {
LBER_FREE( attr->a_vals[i].bv_val );
......@@ -770,8 +771,9 @@ ldap_build_entry(
BER_BVZERO( &attr->a_vals[last] );
i--;
}
}
} else if ( pretty ) {
if ( rc == LDAP_SUCCESS && pretty ) {
LBER_FREE( attr->a_vals[i].bv_val );
attr->a_vals[i] = pval;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment