aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2018-11-06 17:04:08 -0500
committerNeel Chauhan <neel@neelc.org>2018-11-06 17:04:08 -0500
commitf89f14802e938c7abcd2a6387f64d442cefe72c2 (patch)
treed4111cc92486e0a7c46b9cb2bc31ae07178a7484 /src
parent6bd069630a64e540cb118ad84c2bcbb470ce92f8 (diff)
downloadtor-f89f14802e938c7abcd2a6387f64d442cefe72c2.tar.gz
tor-f89f14802e938c7abcd2a6387f64d442cefe72c2.zip
At intro points, don't close circuits on NACKs
Diffstat (limited to 'src')
-rw-r--r--src/or/hs_intropoint.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/or/hs_intropoint.c b/src/or/hs_intropoint.c
index 9eaf572510..a622c62dd4 100644
--- a/src/or/hs_intropoint.c
+++ b/src/or/hs_intropoint.c
@@ -501,12 +501,6 @@ handle_introduce1(or_circuit_t *client_circ, const uint8_t *request,
/* Circuit has been closed on failure of transmission. */
goto done;
}
- if (status != HS_INTRO_ACK_STATUS_SUCCESS) {
- /* We just sent a NACK that is a non success status code so close the
- * circuit because it's not useful to keep it open. Remember, a client can
- * only send one INTRODUCE1 cell on a circuit. */
- circuit_mark_for_close(TO_CIRCUIT(client_circ), END_CIRC_REASON_INTERNAL);
- }
done:
trn_cell_introduce1_free(parsed_cell);
return ret;