From fd15804f63cf4c3c9bd9115a4a279e06e6052314 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Mon, 21 Jun 1999 10:08:03 +0000 Subject: [PATCH] Tokenization is not really well done. This is a temporary fix for parsing answers from Innosoft servers, but expect better tokenization in the future. --- libraries/libldap/schema.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libraries/libldap/schema.c b/libraries/libldap/schema.c index d5bc4e8bc4..b51dbafdfe 100644 --- a/libraries/libldap/schema.c +++ b/libraries/libldap/schema.c @@ -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); -- 2.39.5