mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 21:19:53 -05:00
ITS#4648, alternate fix
This commit is contained in:
parent
3cdba151ad
commit
f1784a54e6
1 changed files with 7 additions and 1 deletions
|
|
@ -422,6 +422,10 @@ ldap_pvt_put_filter( BerElement *ber, const char *str_in )
|
|||
parens--;
|
||||
break;
|
||||
|
||||
case '(':
|
||||
rc = -1;
|
||||
goto done;
|
||||
|
||||
default:
|
||||
Debug( LDAP_DEBUG_TRACE, "put_filter: simple\n",
|
||||
0, 0, 0 );
|
||||
|
|
@ -494,9 +498,11 @@ ldap_pvt_put_filter( BerElement *ber, const char *str_in )
|
|||
str = next;
|
||||
break;
|
||||
}
|
||||
if ( !parens )
|
||||
break;
|
||||
}
|
||||
|
||||
rc = parens ? -1 : 0;
|
||||
rc = ( parens || *str ) ? -1 : 0;
|
||||
|
||||
done:
|
||||
LDAP_FREE( freeme );
|
||||
|
|
|
|||
Loading…
Reference in a new issue