backport patch from pre3:

fix a bug in parsing opt keywords with objects


svn:r2475
This commit is contained in:
Roger Dingledine
2004-10-13 21:44:08 +00:00
parent 0574aad336
commit 160ec8defb
@@ -1147,7 +1147,7 @@ get_next_token(const char **s, where_syntax where) {
tok->args[0] = tor_strndup(*s,next-*s);
tok->n_args = 1;
*s = eat_whitespace_no_nl(next+1);
a_syn = OBJ_OK;
o_syn = OBJ_OK;
} else {
tok->tp = _UNRECOGNIZED;
next = strchr(*s, '\n');