Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Lowden
OpenLDAP
Commits
7c50c4f3
Commit
7c50c4f3
authored
14 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
ITS#6715
parent
0a6e00c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
servers/slapd/modify.c
+7
-6
7 additions, 6 deletions
servers/slapd/modify.c
with
8 additions
and
6 deletions
CHANGES
+
1
−
0
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)
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/modify.c
+
7
−
6
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment