Skip to content
Snippets Groups Projects
Commit c31596eb authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

not-so-easy-to-spot bug in filter writing

parent ef607e65
No related branches found
No related tags found
No related merge requests found
......@@ -721,14 +721,15 @@ put_substring_filter( BerElement *ber, char *type, char *val )
if ( *nextstar == '\0' ) {
ftype = LDAP_SUBSTRING_FINAL;
} else if ( gotstar++ == 0 ) {
ftype = LDAP_SUBSTRING_INITIAL;
} else {
ftype = LDAP_SUBSTRING_ANY;
*nextstar++ = '\0';
if ( gotstar++ == 0 ) {
ftype = LDAP_SUBSTRING_INITIAL;
} else {
ftype = LDAP_SUBSTRING_ANY;
}
}
*nextstar++ = '\0';
if ( *val != '\0' || ftype == LDAP_SUBSTRING_ANY ) {
ber_slen_t len = ldap_pvt_filter_value_unescape( val );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment