aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-08-21 10:10:35 -0400
committerNick Mathewson <nickm@torproject.org>2013-08-21 11:29:19 -0400
commitcbc53a2d52a67e49e56ad9d8f5334ad623a59374 (patch)
tree78ad46a446f28c1a6d9ae74fb84bc9ac00d3d0d5 /src/or/connection_or.c
parent1bb4a4f9bdf24706a459e4aefb2b0fb75622f7ac (diff)
downloadtor-cbc53a2d52a67e49e56ad9d8f5334ad623a59374.tar.gz
tor-cbc53a2d52a67e49e56ad9d8f5334ad623a59374.zip
Make bridges send AUTH_CHALLENGE cells
The spec requires them to do so, and not doing so creates a situation where they can't send-test because relays won't extend to them because of the other part of bug 9546. Fixes bug 9546; bugfix on 0.2.3.6-alpha.
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 31cc9c78d8..d5dd4470e3 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -2218,7 +2218,7 @@ connection_or_compute_authenticate_cell_body(or_connection_t *conn,
const tor_cert_t *id_cert=NULL, *link_cert=NULL;
const digests_t *my_digests, *their_digests;
const uint8_t *my_id, *their_id, *client_id, *server_id;
- if (tor_tls_get_my_certs(0, &link_cert, &id_cert))
+ if (tor_tls_get_my_certs(server, &link_cert, &id_cert))
return -1;
my_digests = tor_cert_get_id_digests(id_cert);
their_digests = tor_cert_get_id_digests(conn->handshake_state->id_cert);