From 4ddf2385a0e7b140424bd44ea05b6a6a5d9c612a Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 18 Nov 2005 11:35:23 +0000 Subject: [PATCH] if it's not less than three does that mean it's more than two? svn:r5422 --- src/or/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/control.c b/src/or/control.c index 381d01f404..103ba003ae 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1793,7 +1793,7 @@ handle_control_redirectstream(connection_t *conn, uint32_t len, (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); }