]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove some redundand code in control.c
authorSebastian Hahn <sebastian@torproject.org>
Mon, 22 Feb 2010 09:41:46 +0000 (10:41 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Mon, 22 Feb 2010 09:41:46 +0000 (10:41 +0100)
Found by coverity

src/or/control.c

index 9840ea629447ca355ebae111df6e361ecb8cfecc..b8e07a0c8401fa52779fe195123eb65a0bef0ae4 100644 (file)
@@ -2125,9 +2125,6 @@ handle_control_extendcircuit(control_connection_t *conn, uint32_t len,
 
   SMARTLIST_FOREACH(args, char *, cp, tor_free(cp));
   smartlist_free(args);
-  if (!zero_circ && !circ) {
-    goto done;
-  }
 
   routers = smartlist_create();
   SMARTLIST_FOREACH(router_nicknames, const char *, n,