From: Nick Mathewson Date: Wed, 6 Oct 2004 13:28:34 +0000 (+0000) Subject: Fix a couple of typos, one of which conceals a bug in parsing opt keywords with objects X-Git-Tag: debian-version-0.0.8+0.0.9pre2-1~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b08ff7b1f72ce89a013c17cd7915c3af7c9e476e;p=thirdparty%2Ftor.git Fix a couple of typos, one of which conceals a bug in parsing opt keywords with objects svn:r2421 --- diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 52076ff1f0..9f8ae7dde7 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -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'); @@ -1213,7 +1213,7 @@ get_next_token(const char **s, where_syntax where) { break; case NEED_KEY: if (!tok->key) - RET_ERR("Missing publid key for keyword"); + RET_ERR("Missing public key for keyword"); break; case OBJ_OK: break;