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
cce2f372
Commit
cce2f372
authored
Feb 19, 2013
by
Howard Chu
Committed by
Quanah Gibson-Mount
Feb 19, 2013
Browse files
ITS#7527 add missing error checks for corrupt index
parent
1123e379
Changes
1
Show whitespace changes
Inline
Side-by-side
servers/slapd/back-mdb/idl.c
View file @
cce2f372
...
...
@@ -505,9 +505,17 @@ mdb_idl_insert_keys(
if
(
id
<
lo
||
id
>
hi
)
{
/* position on lo */
rc
=
mdb_cursor_get
(
cursor
,
&
key
,
&
data
,
MDB_NEXT_DUP
);
if
(
rc
!=
0
)
{
err
=
"c_get lo"
;
goto
fail
;
}
if
(
id
>
hi
)
{
/* position on hi */
rc
=
mdb_cursor_get
(
cursor
,
&
key
,
&
data
,
MDB_NEXT_DUP
);
if
(
rc
!=
0
)
{
err
=
"c_get hi"
;
goto
fail
;
}
}
data
.
mv_size
=
sizeof
(
ID
);
data
.
mv_data
=
&
id
;
...
...
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