[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] if it"s not less than three does that mean it"s more than t...



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	control.c 
Log Message:
if it's not less than three does that mean it's more than two?


Index: control.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -d -r1.151 -r1.152
--- control.c	18 Nov 2005 11:32:59 -0000	1.151
+++ control.c	18 Nov 2005 11:35:23 -0000	1.152
@@ -1793,7 +1793,7 @@
                                (char*)smartlist_get(args, 0));
     } else {
       int ok;
-      if (smartlist_len(args) < 3) { /* they included a port too */
+      if (smartlist_len(args) > 2) { /* they included a port too */
         new_port = (uint16_t) tor_parse_ulong(smartlist_get(args, 2),
                                      10, 1, 65535, &ok, NULL);
       }