mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 23:51:21 -05:00
ITS#7203 approxIndexer should omit zero-length keys
This commit is contained in:
parent
47e57a9c8f
commit
8c452e3272
1 changed files with 5 additions and 1 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue