Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
967afb76
Commit
967afb76
authored
Dec 06, 2007
by
Howard Chu
Browse files
Sync with HEAD
parent
3c38e5f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/dn2id.c
View file @
967afb76
...
...
@@ -468,11 +468,11 @@ hdb_dup_compare(
cn
=
(
diskNode
*
)
curkey
->
data
;
/* data is not aligned, cannot compare directly */
ul
=
un
->
nrdnlen
[
0
]
<<
8
|
un
->
nrdnlen
[
1
];
cl
=
cn
->
nrdnlen
[
0
]
<<
8
|
cn
->
nrdnlen
[
1
];
rc
=
un
->
nrdnlen
[
0
]
-
cn
->
nrdnlen
[
0
];
if
(
rc
)
return
rc
;
rc
=
un
->
nrdnlen
[
1
]
-
cn
->
nrdnlen
[
1
];
if
(
rc
)
return
rc
;
rc
=
ul
-
cl
;
if
(
rc
)
return
rc
;
return
strcmp
(
un
->
nrdn
,
cn
->
nrdn
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment