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
Quanah Gibson-Mount
OpenLDAP
Commits
74a5a3a4
Commit
74a5a3a4
authored
Oct 07, 2021
by
Howard Chu
Browse files
ITS
#9712
back-mdb: fix multival delete
parent
397e30a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-mdb/id2entry.c
View file @
74a5a3a4
...
...
@@ -55,6 +55,8 @@ mdb_id2v_compare(
return
-
1
;
if
(
ui
>
ci
)
return
1
;
if
(
usrkey
->
mv_size
<
curkey
->
mv_size
)
return
0
;
uv
=
usrkey
->
mv_data
;
cv
=
curkey
->
mv_data
;
return
uv
[
sizeof
(
ID
)
/
2
]
-
cv
[
sizeof
(
ID
)
/
2
];
...
...
@@ -490,7 +492,8 @@ int mdb_id2entry_delete(
return
rc
;
rc
=
mdb_cursor_get
(
mvc
,
&
key
,
NULL
,
MDB_GET_CURRENT
);
if
(
rc
)
{
if
(
rc
==
MDB_NOTFOUND
)
/* no record or DB is empty */
if
(
rc
==
MDB_NOTFOUND
||
rc
==
EINVAL
)
rc
=
MDB_SUCCESS
;
break
;
}
...
...
Write
Preview
Markdown
is supported
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