Commit 47ea77c1 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#7203 approxIndexer should omit zero-length keys

parent b9e00e8a
......@@ -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++;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment