summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-06-29 12:55:35 -0400
committerNick Mathewson <nickm@torproject.org>2020-06-29 12:55:35 -0400
commitfd8ce812b0a7263b75096207a735c02945320c86 (patch)
treee44b9ab64b49478d30d54888059e5b8ef1892402 /src
parent0f218a05a6d8271639a81ec2667f86ef1aa38e66 (diff)
parent0c0214bcc08e85040e8eb12f8388a45d271a6918 (diff)
downloadtor-fd8ce812b0a7263b75096207a735c02945320c86.tar.gz
tor-fd8ce812b0a7263b75096207a735c02945320c86.zip
Merge branch 'maint-0.3.5' into maint-0.4.2
Diffstat (limited to 'src')
-rw-r--r--src/feature/hs/hs_client.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c
index 9d67f71275..8b63375939 100644
--- a/src/feature/hs/hs_client.c
+++ b/src/feature/hs/hs_client.c
@@ -606,9 +606,14 @@ send_introduce1(origin_circuit_t *intro_circ,
/* We need to find which intro point in the descriptor we are connected to
* on intro_circ. */
ip = find_desc_intro_point_by_ident(intro_circ->hs_ident, desc);
- if (BUG(ip == NULL)) {
- /* If we can find a descriptor from this introduction circuit ident, we
- * must have a valid intro point object. Permanent error. */
+ if (ip == NULL) {
+ /* The following is possible if the descriptor was changed while we had
+ * this introduction circuit open and waiting for the rendezvous circuit to
+ * be ready. Which results in this situation where we can't find the
+ * corresponding intro point within the descriptor of the service. */
+ log_info(LD_REND, "Unable to find introduction point for service %s "
+ "while trying to send an INTRODUCE1 cell.",
+ safe_str_client(onion_address));
goto perm_err;
}