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
d4cf2c23
Commit
d4cf2c23
authored
Oct 02, 2007
by
Pierangelo Masarati
Browse files
fix ITS
#5163
(re23 only)
parent
e98e0aef
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
d4cf2c23
...
...
@@ -13,6 +13,7 @@ OpenLDAP 2.3.39 Engineering
Fixed slapd-sql concurrency issue (ITS#5095)
Fixed slapo-chain double-free (ITS#5137)
Fixed slapo-pcache and -rwm interaction fix (ITS#4991)
Fixed slapo-pcache non-null terminated array crasher (ITS#5163)
Fixed slapo-rwm modlist handling (ITS#5124)
Fixed liblber Windows x64 portability (ITS#5105)
Fixed libldap ppolicy control creation (ITS#5103)
...
...
servers/slapd/overlays/pcache.c
View file @
d4cf2c23
...
...
@@ -1134,8 +1134,8 @@ add_filter_attrs(
count
++
;
}
*
new_attrs
=
(
AttributeName
*
)
ch_
m
alloc
(
(
count
+
1
)
*
sizeof
(
AttributeName
));
*
new_attrs
=
(
AttributeName
*
)
ch_
c
alloc
(
count
+
1
,
sizeof
(
AttributeName
)
);
for
(
i
=
0
;
i
<
attrs
->
count
;
i
++
)
{
(
*
new_attrs
)[
i
].
an_name
=
attrs
->
attrs
[
i
].
an_name
;
(
*
new_attrs
)[
i
].
an_desc
=
attrs
->
attrs
[
i
].
an_desc
;
...
...
@@ -1155,18 +1155,13 @@ add_filter_attrs(
continue
;
(
*
new_attrs
)[
j
].
an_name
=
filter_attrs
[
i
].
an_name
;
(
*
new_attrs
)[
j
].
an_desc
=
filter_attrs
[
i
].
an_desc
;
(
*
new_attrs
)[
j
].
an_oc
=
NULL
;
(
*
new_attrs
)[
j
].
an_oc_exclude
=
0
;
j
++
;
}
if
(
addoc
)
{
(
*
new_attrs
)[
j
].
an_name
=
slap_schema
.
si_ad_objectClass
->
ad_cname
;
(
*
new_attrs
)[
j
].
an_desc
=
slap_schema
.
si_ad_objectClass
;
(
*
new_attrs
)[
j
].
an_oc
=
NULL
;
(
*
new_attrs
)[
j
].
an_oc_exclude
=
0
;
j
++
;
}
BER_BVZERO
(
&
(
*
new_attrs
)[
j
].
an_name
);
}
/* NOTE: this is a quick workaround to let pcache minimally interact
...
...
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