Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
7c50c4f3
Commit
7c50c4f3
authored
Dec 12, 2010
by
Quanah Gibson-Mount
Browse files
ITS#6715
parent
0a6e00c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
7c50c4f3
...
...
@@ -11,6 +11,7 @@ OpenLDAP 2.4.24 Engineering
Fixed slapd acl parsing overflow (ITS#6611)
Fixed slapd when first acl is value dependent (ITS#6693)
Fixed slapd modify to return actual error (ITS#6581)
Fixed slapd modify leaving rc uninitialized (ITS#6715)
Fixed slapd syncrepl reuse of presence list (ITS#6707)
Fixed slapd-bdb entry cache delete failure (ITS#6577)
Fixed slapd-ndb to honor rootpw setting (ITS#6661)
...
...
servers/slapd/modify.c
View file @
7c50c4f3
...
...
@@ -684,7 +684,7 @@ slap_sort_vals(
AttributeDescription
*
ad
;
MatchingRule
*
mr
;
int
istack
[
sizeof
(
int
)
*
16
];
int
i
,
j
,
k
,
l
,
ir
,
jstack
,
match
,
*
ix
,
itmp
,
nvals
,
rc
;
int
i
,
j
,
k
,
l
,
ir
,
jstack
,
match
,
*
ix
,
itmp
,
nvals
,
rc
=
LDAP_SUCCESS
;
int
is_norm
;
struct
berval
a
,
*
cv
;
...
...
@@ -705,6 +705,8 @@ slap_sort_vals(
ad
=
ml
->
sml_desc
;
nvals
=
ml
->
sml_numvals
;
if
(
nvals
<=
1
)
goto
ret
;
/* For Modifications, sml_nvalues is NULL if normalization wasn't needed.
* For Attributes, sml_nvalues == sml_values when normalization isn't needed.
...
...
@@ -834,15 +836,14 @@ slap_sort_vals(
slap_sl_free
(
ix
,
ctx
);
if
(
rc
!=
LDAP_SUCCESS
)
{
return
rc
;
}
else
if
(
match
==
0
)
{
if
(
rc
==
LDAP_SUCCESS
&&
match
==
0
)
{
/* value exists already */
assert
(
i
>=
0
);
assert
(
i
<
nvals
);
r
eturn
LDAP_TYPE_OR_VALUE_EXISTS
;
r
c
=
LDAP_TYPE_OR_VALUE_EXISTS
;
}
return
LDAP_SUCCESS
;
ret:
return
rc
;
}
/* Enter with bv->bv_len = sizeof buffer, returns with
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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