From: Julio Sánchez Fernández Date: Mon, 21 Jun 1999 10:08:03 +0000 (+0000) Subject: Tokenization is not really well done. This is a temporary fix for parsing X-Git-Tag: OPENLDAP_REL_ENG_2_BP~255 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fd15804f63cf4c3c9bd9115a4a279e06e6052314;p=openldap Tokenization is not really well done. This is a temporary fix for parsing answers from Innosoft servers, but expect better tokenization in the future. --- 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);