mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fix attribute description parsing (ITS#5402)
This commit is contained in:
parent
3cd78a5151
commit
9ca53f98ed
@ -709,20 +709,19 @@ slap_set_filter( SLAP_SET_GATHER gatherer,
|
||||
break;
|
||||
|
||||
default:
|
||||
if ( ( c != '_' )
|
||||
&& ( c < 'A' || c > 'Z' )
|
||||
&& ( c < 'a' || c > 'z' ) )
|
||||
{
|
||||
if ( !AD_LEADCHAR( c ) ) {
|
||||
SF_ERROR( syntax );
|
||||
}
|
||||
filter--;
|
||||
for ( len = 1;
|
||||
( c = filter[ len ] )
|
||||
&& ( ( c >= '0' && c <= '9' )
|
||||
|| ( c >= 'A' && c <= 'Z' )
|
||||
|| ( c >= 'a' && c <= 'z' ) );
|
||||
len++ )
|
||||
/* count */ ;
|
||||
( c = filter[ len ] ) && AD_CHAR( c );
|
||||
len++ )
|
||||
{
|
||||
/* count */
|
||||
if ( c == '-' && !AD_CHAR( filter[ len + 1 ] ) ) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ( len == 4
|
||||
&& memcmp( "this", filter, len ) == 0 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user