]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fixed an unused-variable warning
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Dec 2012 16:45:06 +0000 (11:45 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Dec 2012 19:50:05 +0000 (14:50 -0500)
src/or/connection_edge.c

index 61e57bfe2ebf668ee9a2df139ac5cf0b2d409211..3207f588eca664aee07e7a61d4576af5a3417c02 100644 (file)
@@ -2064,10 +2064,6 @@ connection_ap_handshake_socks_resolved(entry_connection_t *conn,
   size_t replylen;
 
   if (ttl >= 0) {
-    origin_circuit_t *origin_circ = NULL;
-    circuit_t *circ = ENTRY_TO_EDGE_CONN(conn)->on_circuit;
-    if (CIRCUIT_IS_ORIGIN(circ)) /* should always be true */
-      origin_circ = TO_ORIGIN_CIRCUIT(circ);
     if (answer_type == RESOLVED_TYPE_IPV4 && answer_len == 4) {
       tor_addr_t a;
       tor_addr_from_ipv4n(&a, get_uint32(answer));