Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
ab68c757
Commit
ab68c757
authored
Sep 23, 2006
by
Pierangelo Masarati
Browse files
fix potential double free in case of error
parent
8490231b
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
ab68c757
...
...
@@ -3,6 +3,7 @@ OpenLDAP 2.3 Change Log
OpenLDAP 2.3.28 Engineering
Fixed libldap ldap.conf max line length (ITS#4669)
Fixed librewrite LDAP map parsing bug
Fixed librewrite map double free bug
Added ldapsearch bad filter pattern check (ITS#4647)
Fixed slapd-monitor locking with scope "subordinate" (ITS#4668)
Fixed slapd global access controls initialization (ITS#4654)
...
...
libraries/librewrite/map.c
View file @
ab68c757
...
...
@@ -354,7 +354,12 @@ rewrite_map_apply(
(
struct
rewrite_context
*
)
map
->
lm_data
,
key
->
bv_val
,
&
val
->
bv_val
);
if
(
val
->
bv_val
!=
NULL
)
{
val
->
bv_len
=
strlen
(
val
->
bv_val
);
if
(
val
->
bv_val
==
key
->
bv_val
)
{
val
->
bv_len
=
key
->
bv_len
;
key
->
bv_val
=
NULL
;
}
else
{
val
->
bv_len
=
strlen
(
val
->
bv_val
);
}
}
break
;
...
...
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