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
2b32c8bb
Commit
2b32c8bb
authored
Aug 04, 2007
by
Howard Chu
Browse files
Fix LDAPDN_rewrite / AVA_Sort in prev commit
parent
f67bc268
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/dn.c
View file @
2b32c8bb
...
...
@@ -442,7 +442,7 @@ LDAPRDN_rewrite( LDAPRDN rdn, unsigned flags, void *ctx )
static
int
LDAPDN_rewrite
(
LDAPDN
dn
,
unsigned
flags
,
void
*
ctx
)
{
int
iRDN
;
int
iRDN
,
do_sort
=
0
;
int
rc
;
assert
(
dn
!=
NULL
);
...
...
@@ -461,7 +461,6 @@ LDAPDN_rewrite( LDAPDN dn, unsigned flags, void *ctx )
slap_syntax_transform_func
*
transf
=
NULL
;
MatchingRule
*
mr
=
NULL
;
struct
berval
bv
=
BER_BVNULL
;
int
do_sort
=
0
;
assert
(
ava
!=
NULL
);
...
...
@@ -562,10 +561,13 @@ LDAPDN_rewrite( LDAPDN dn, unsigned flags, void *ctx )
ava
->
la_flags
|=
LDAP_AVA_FREE_VALUE
;
}
if
(
do_sort
)
AVA_Sort
(
rdn
,
iAVA
);
}
if
(
do_sort
)
{
rc
=
AVA_Sort
(
rdn
,
iAVA
);
if
(
rc
!=
LDAP_SUCCESS
)
return
rc
;
}
}
return
LDAP_SUCCESS
;
}
...
...
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