mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-11 09:22:54 -05:00
ITS#9937 libldap: fix put_simple_filter() with invalid filter
Add check for trivial input string.
This commit is contained in:
parent
cbdeb374cf
commit
41f87c53ec
1 changed files with 2 additions and 0 deletions
|
|
@ -555,6 +555,8 @@ put_simple_filter(
|
|||
Debug1( LDAP_DEBUG_TRACE, "put_simple_filter: \"%s\"\n",
|
||||
str );
|
||||
|
||||
if ( str[0] == '=' ) return -1;
|
||||
|
||||
str = LDAP_STRDUP( str );
|
||||
if( str == NULL ) return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue