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
Tero Saarni
OpenLDAP
Commits
0ecaa025
Commit
0ecaa025
authored
Dec 08, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Jan 05, 2022
Browse files
ITS#9764 slapo-valsort: Maintain values in order of insertion
parent
52bba704
Changes
1
Show whitespace changes
Inline
Side-by-side
servers/slapd/overlays/valsort.c
View file @
0ecaa025
...
...
@@ -88,7 +88,7 @@ static Syntax *syn_numericString;
static
int
valsort_cf_func
(
ConfigArgs
*
c
)
{
slap_overinst
*
on
=
(
slap_overinst
*
)
c
->
bi
;
valsort_info
vitmp
,
*
vi
;
valsort_info
vitmp
,
*
vi
,
**
vip
;
const
char
*
text
=
NULL
;
int
i
,
is_numeric
;
struct
berval
bv
=
BER_BVNULL
;
...
...
@@ -200,10 +200,14 @@ valsort_cf_func(ConfigArgs *c) {
c
->
log
,
c
->
cr_msg
,
c
->
argv
[
1
]
);
return
(
1
);
}
for
(
vip
=
&
on
->
on_bi
.
bi_private
;
*
vip
;
vip
=
&
(
*
vip
)
->
vi_next
)
/* Get to the end */
;
vi
=
ch_malloc
(
sizeof
(
valsort_info
)
);
*
vi
=
vitmp
;
vi
->
vi_next
=
on
->
on_bi
.
bi_private
;
on
->
on_bi
.
bi_private
=
vi
;
vi
->
vi_next
=
*
vip
;
*
vip
=
vi
;
return
0
;
}
...
...
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