[or-cvs] Fix a couple of typos, one of which conceals a bug in parsi...

Nick Mathewson nickm at seul.org
Wed Oct 6 13:28:37 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv24748/src/or

Modified Files:
	routerparse.c 
Log Message:
Fix a couple of typos, one of which conceals a bug in parsing opt keywords with objects

Index: routerparse.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerparse.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- routerparse.c	3 Oct 2004 02:37:52 -0000	1.44
+++ routerparse.c	6 Oct 2004 13:28:34 -0000	1.45
@@ -1147,7 +1147,7 @@
       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 @@
       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;



More information about the tor-commits mailing list