]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
ticket(25645): remove unused variable n_possible from channel_get_for_extend()
authorDeepesh Pathak <deepshpathak@gmail.com>
Tue, 3 Apr 2018 03:47:23 +0000 (09:17 +0530)
committerDeepesh Pathak <deepshpathak@gmail.com>
Tue, 3 Apr 2018 03:47:23 +0000 (09:17 +0530)
changes/ticket25645 [new file with mode: 0644]
src/or/channel.c

diff --git a/changes/ticket25645 b/changes/ticket25645
new file mode 100644 (file)
index 0000000..ab20a5c
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (channel_get_for_extend()):
+    - Remove the unused variable n_possible from the function
+      Fixes bug 25645; bugfix on 0.2.4.4-alpha
+
index a9483ee0210c11d37fa238fda6cf07918c60f3b2..af2558e1f859366f2fdedd04ca624e2d33d20ba2 100644 (file)
@@ -2387,7 +2387,7 @@ channel_get_for_extend(const char *rsa_id_digest,
 {
   channel_t *chan, *best = NULL;
   int n_inprogress_goodaddr = 0, n_old = 0;
-  int n_noncanonical = 0, n_possible = 0;
+  int n_noncanonical = 0;
 
   tor_assert(msg_out);
   tor_assert(launch_out);
@@ -2450,8 +2450,6 @@ channel_get_for_extend(const char *rsa_id_digest,
       continue;
     }
 
-    ++n_possible;
-
     if (!best) {
       best = chan; /* If we have no 'best' so far, this one is good enough. */
       continue;