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
47ea77c1
Commit
47ea77c1
authored
Mar 09, 2012
by
Howard Chu
Committed by
Quanah Gibson-Mount
Mar 09, 2012
Browse files
ITS
#7203
approxIndexer should omit zero-length keys
parent
b9e00e8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
47ea77c1
...
...
@@ -2155,7 +2155,11 @@ approxIndexer(
len
=
strlen
(
c
);
if
(
len
<
SLAPD_APPROX_WORDLEN
)
continue
;
ber_str2bv
(
phonetic
(
c
),
0
,
0
,
&
keys
[
keycount
]
);
keycount
++
;
if
(
keys
[
keycount
].
bv_len
)
{
keycount
++
;
}
else
{
ch_free
(
keys
[
keycount
].
bv_val
);
}
i
++
;
}
...
...
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