mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Tokenization is not really well done. This is a temporary fix for parsing
answers from Innosoft servers, but expect better tokenization in the future.
This commit is contained in:
parent
52e69dfc14
commit
fd15804f63
@ -572,7 +572,12 @@ get_token(const char ** sp, char ** token_val)
|
||||
default:
|
||||
kind = TK_BAREWORD;
|
||||
p = *sp;
|
||||
while ( !isspace(**sp) && **sp != '\0' )
|
||||
while ( !isspace(**sp) &&
|
||||
**sp != '(' &&
|
||||
**sp != ')' &&
|
||||
**sp != '$' &&
|
||||
**sp != '\'' &&
|
||||
**sp != '\0' )
|
||||
(*sp)++;
|
||||
q = *sp;
|
||||
res = LDAP_MALLOC(q-p+1);
|
||||
|
Loading…
Reference in New Issue
Block a user