Browse Source

Fix a couple of typos, one of which conceals a bug in parsing opt keywords with objects

svn:r2421
Nick Mathewson 21 years ago
parent
commit
b08ff7b1f7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/or/routerparse.c

+ 2 - 2
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->args[0] = tor_strndup(*s,next-*s);
       tok->n_args = 1;
       tok->n_args = 1;
       *s = eat_whitespace_no_nl(next+1);
       *s = eat_whitespace_no_nl(next+1);
-      a_syn = OBJ_OK;
+      o_syn = OBJ_OK;
     } else {
     } else {
       tok->tp = _UNRECOGNIZED;
       tok->tp = _UNRECOGNIZED;
       next = strchr(*s, '\n');
       next = strchr(*s, '\n');
@@ -1213,7 +1213,7 @@ get_next_token(const char **s, where_syntax where) {
       break;
       break;
     case NEED_KEY:
     case NEED_KEY:
       if (!tok->key)
       if (!tok->key)
-        RET_ERR("Missing publid key for keyword");
+        RET_ERR("Missing public key for keyword");
       break;
       break;
     case OBJ_OK:
     case OBJ_OK:
       break;
       break;