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
0e5870cd
Commit
0e5870cd
authored
Mar 12, 2003
by
Howard Chu
Browse files
ITS#2348 additional check from HEAD
parent
04382bb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldbm/idl.c
View file @
0e5870cd
...
...
@@ -480,6 +480,12 @@ idl_insert_key(
/* select the block to try inserting into *//* XXX linear search XXX */
for
(
i
=
0
;
!
ID_BLOCK_NOID
(
idl
,
i
)
&&
id
>
ID_BLOCK_ID
(
idl
,
i
);
i
++
)
;
/* NULL */
/* The ID already exists in the IDL, no insert needed */
if
(
ID_BLOCK_ID
(
idl
,
i
)
==
id
)
{
idl_free
(
idl
);
return
0
;
}
if
(
i
!=
0
)
{
i
--
;
...
...
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