]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add error message for exit_node in hs_circ_send_introduce1()
authorNeel Chauhan <neel@neelc.org>
Thu, 16 Nov 2017 18:13:31 +0000 (13:13 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 17 Nov 2017 13:42:07 +0000 (08:42 -0500)
src/or/hs_circuit.c

index 7f5bbdaaf4cffaaec7f438421d1e0788a5ac6f5d..a232a40c800b265efcb98747308866e638ac18ea 100644 (file)
@@ -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. */