]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
prop224: Refactor how we use connection_ap_handle_onion
authorDavid Goulet <dgoulet@torproject.org>
Wed, 23 Aug 2017 14:48:48 +0000 (10:48 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Thu, 24 Aug 2017 17:03:28 +0000 (13:03 -0400)
Simply directly return its returned value.

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/connection_edge.c

index 6409c5be81ba457c72dfd110e56a152632773fb1..a98b32450b889b13e4ba62a96cf664e277fbfde8 100644 (file)
@@ -2017,9 +2017,7 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn,
     tor_assert(addresstype == ONION_V2_HOSTNAME ||
                addresstype == ONION_V3_HOSTNAME);
     tor_assert(!automap);
-    if (connection_ap_handle_onion(conn, socks, circ, addresstype) < 0) {
-      return -1;
-    }
+    return connection_ap_handle_onion(conn, socks, circ, addresstype);
   }
 
   return 0; /* unreached but keeps the compiler happy */