ITS#9937 libldap: fix put_simple_filter() with invalid filter

Add check for trivial input string.
This commit is contained in:
Howard Chu 2022-10-20 12:38:02 +01:00
parent cbdeb374cf
commit 41f87c53ec

View file

@ -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;