Commit 5a2f9b8a authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ITS#1898 ldap_controls_dup malloc() bug fix

parent cfaf1da7
......@@ -11,6 +11,7 @@ OpenLDAP 2.1.3 Engineering
Fixed back-ldap/meta mapping bug (ITS#1787)
Add back-monitor added monitorContext support
Fixed back-perl ad_cname bug (ITS#1882)
Fixed libldap ldap_controls_dup() malloc bug (ITS#1898)
Remove lint
Build Environment
Add monitor backend test
......@@ -18,6 +19,8 @@ OpenLDAP 2.1.3 Engineering
Fix SASL-less build issues
Fix back-perl build issues (ITS#1827)
Added -ldb-4 detection (ITS#1888)
Documentation
Numerous manual page updates
OpenLDAP 2.1.2 Release
Initial release for "general" use.
......
......@@ -285,7 +285,7 @@ ldap_controls_dup( LDAPControl *const *controls )
return NULL;
}
new = (LDAPControl **) LDAP_MALLOC( i * sizeof(LDAPControl *) );
new = (LDAPControl **) LDAP_MALLOC( (i+1) * sizeof(LDAPControl *) );
if( new == NULL ) {
/* memory allocation failure */
......
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