aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2017-11-16 13:13:31 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-17 08:42:07 -0500
commiteb793c31cf9230a2bb4bda554379056f044f5473 (patch)
treeeb4713ec65b8150105a7d9d86ba4c991166afc3d /src/or
parentb8addf97463d9338558ec7c0b97b48eaa476fc55 (diff)
downloadtor-eb793c31cf9230a2bb4bda554379056f044f5473.tar.gz
tor-eb793c31cf9230a2bb4bda554379056f044f5473.zip
Add error message for exit_node in hs_circ_send_introduce1()
Diffstat (limited to 'src/or')
-rw-r--r--src/or/hs_circuit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/hs_circuit.c b/src/or/hs_circuit.c
index 7f5bbdaaf4..a232a40c80 100644
--- a/src/or/hs_circuit.c
+++ b/src/or/hs_circuit.c
@@ -1109,6 +1109,11 @@ hs_circ_send_introduce1(origin_circuit_t *intro_circ,
/* This takes various objects in order to populate the introduce1 data
* object which is used to build the content of the cell. */
const node_t *exit_node = build_state_get_exit_node(rend_circ->build_state);
+ if (exit_node == NULL) {
+ log_info(LD_REND, "Unable to get rendezvous point for circuit %u. "
+ "Failing.", TO_CIRCUIT(intro_circ)->n_circ_id);
+ goto done;
+ }
setup_introduce1_data(ip, exit_node, subcredential, &intro1_data);
/* If we didn't get any link specifiers, it's because our node was
* bad. */