mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
A search requesting 'cn;lang-en-' did not find 'cn;lang-en'.
This commit is contained in:
parent
44620410d5
commit
b968317900
1 changed files with 5 additions and 2 deletions
|
|
@ -385,8 +385,11 @@ static int is_ad_sublang(
|
|||
subdelimp = strchrlen( subp, ';', &sublen );
|
||||
if( subdelimp ) subdelimp++;
|
||||
|
||||
if ((( suplen < sublen && supp[suplen-1] == '-' ) ||
|
||||
suplen == sublen ) && strncmp( supp, subp, suplen ) == 0 )
|
||||
if ( suplen > sublen
|
||||
? ( suplen-1 == sublen && supp[suplen-1] == '-'
|
||||
&& strncmp( supp, subp, sublen ) == 0 )
|
||||
: ( ( suplen == sublen || supp[suplen-1] == '-' )
|
||||
&& strncmp( supp, subp, suplen ) == 0 ) )
|
||||
{
|
||||
goto match;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue