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
Nadezhda Ivanova
OpenLDAP
Commits
009cabb1
Commit
009cabb1
authored
Jul 10, 2002
by
Kurt Zeilenga
Browse files
Fix IA5 indexer
parent
1ab4ed93
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/proto-slap.h
View file @
009cabb1
...
...
@@ -539,6 +539,7 @@ LDAP_SLAPD_F( int ) slap_mods_check(
char
*
textbuf
,
size_t
textlen
);
LDAP_SLAPD_F
(
int
)
slap_mods_opattrs
(
Backend
*
be
,
Operation
*
op
,
Modifications
*
mods
,
Modifications
**
modlist
,
...
...
servers/slapd/schema_init.c
View file @
009cabb1
...
...
@@ -2797,6 +2797,7 @@ static int caseIgnoreIA5Indexer(
BerVarray
*
keysp
)
{
int
i
;
int
rc
=
LDAP_SUCCESS
;
size_t
slen
,
mlen
;
BerVarray
keys
;
HASH_CONTEXT
HASHcontext
;
...
...
@@ -2819,7 +2820,21 @@ static int caseIgnoreIA5Indexer(
for
(
i
=
0
;
values
[
i
].
bv_val
!=
NULL
;
i
++
)
{
struct
berval
value
;
ber_dupbv
(
&
value
,
&
values
[
i
]
);
if
(
mr
->
smr_normalize
)
{
rc
=
(
mr
->
smr_normalize
)(
use
,
syntax
,
mr
,
&
values
[
i
],
&
value
);
if
(
rc
!=
LDAP_SUCCESS
)
{
break
;
}
}
else
if
(
mr
->
smr_syntax
->
ssyn_normalize
)
{
rc
=
(
mr
->
smr_syntax
->
ssyn_normalize
)(
syntax
,
&
values
[
i
],
&
value
);
if
(
rc
!=
LDAP_SUCCESS
)
{
break
;
}
}
else
{
ber_dupbv
(
&
value
,
&
values
[
i
]
);
}
ldap_pvt_str2lower
(
value
.
bv_val
);
HASH_Init
(
&
HASHcontext
);
...
...
@@ -2841,8 +2856,12 @@ static int caseIgnoreIA5Indexer(
}
keys
[
i
].
bv_val
=
NULL
;
if
(
rc
!=
LDAP_SUCCESS
)
{
ber_bvarray_free
(
keys
);
keys
=
NULL
;
}
*
keysp
=
keys
;
return
LDAP_SUCCESS
;
return
rc
;
}
/* Index generation function */
...
...
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