diff options
author | David Goulet <dgoulet@torproject.org> | 2017-08-23 10:48:48 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-08-24 13:03:28 -0400 |
commit | 5f94c4a0f17403060d5030fab3e81bde46693119 (patch) | |
tree | 8e94c89da75ce4df91f0f4f7870e7c3171fc446a /src | |
parent | 98efb646fc2caac850684f35e2ff6fd9eeab1450 (diff) | |
download | tor-5f94c4a0f17403060d5030fab3e81bde46693119.tar.gz tor-5f94c4a0f17403060d5030fab3e81bde46693119.zip |
prop224: Refactor how we use connection_ap_handle_onion
Simply directly return its returned value.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 6409c5be81..a98b32450b 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -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 */ |