Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
5a2f9b8a
Commit
5a2f9b8a
authored
Jun 21, 2002
by
Kurt Zeilenga
Browse files
ITS#1898 ldap_controls_dup malloc() bug fix
parent
cfaf1da7
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
5a2f9b8a
...
...
@@ -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.
...
...
libraries/libldap/controls.c
View file @
5a2f9b8a
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment