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
openldap
OpenLDAP
Commits
d01375b2
Commit
d01375b2
authored
Jul 31, 2002
by
Howard Chu
Browse files
Fix bdb_idl_union of range and list (related to ITS
#1969
parent
838643d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/idl.c
View file @
d01375b2
...
...
@@ -1014,8 +1014,11 @@ bdb_idl_union(
}
if
(
BDB_IDL_IS_RANGE
(
a
)
||
BDB_IDL_IS_RANGE
(
b
)
)
{
over:
a
[
1
]
=
IDL_MIN
(
BDB_IDL_FIRST
(
a
),
BDB_IDL_FIRST
(
b
)
);
a
[
2
]
=
IDL_MAX
(
BDB_IDL_LAST
(
a
),
BDB_IDL_LAST
(
b
)
);
over:
ida
=
IDL_MIN
(
BDB_IDL_FIRST
(
a
),
BDB_IDL_FIRST
(
b
)
);
idb
=
IDL_MAX
(
BDB_IDL_LAST
(
a
),
BDB_IDL_LAST
(
b
)
);
a
[
0
]
=
NOID
;
a
[
1
]
=
ida
;
a
[
2
]
=
idb
;
return
0
;
}
...
...
@@ -1028,7 +1031,6 @@ over: a[1] = IDL_MIN( BDB_IDL_FIRST(a), BDB_IDL_FIRST(b) );
while
(
ida
!=
NOID
||
idb
!=
NOID
)
{
if
(
ida
<
idb
)
{
if
(
++
cursorc
>
BDB_IDL_UM_MAX
)
{
a
[
0
]
=
NOID
;
goto
over
;
}
b
[
cursorc
]
=
ida
;
...
...
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