]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update documentation comment for rend_client_reextend_intro_circuit
authorRobert Ransom <rransom.8774@gmail.com>
Mon, 10 Oct 2011 12:33:53 +0000 (05:33 -0700)
committerRobert Ransom <rransom.8774@gmail.com>
Mon, 10 Oct 2011 12:33:53 +0000 (05:33 -0700)
One of its callers assumes a non-zero result indicates a permanent failure
(i.e. the current attempt to connect to this HS either has failed or is
 doomed).  The other caller only requires that this function's result
never equal -2.

Bug reported by Sebastian Hahn.

src/or/rendclient.c

index 9c247f5c71f7554bc8c43f4bcac66b6340916aca..f84475acbcc8c77392df7438f0db95f33546c66b 100644 (file)
@@ -80,8 +80,8 @@ rend_client_send_establish_rendezvous(origin_circuit_t *circ)
 /** Extend the introduction circuit <b>circ</b> to another valid
  * introduction point for the hidden service it is trying to connect
  * to, or mark it and launch a new circuit if we can't extend it.
- * Return 0 on success.  Return -1 and mark the introduction
- * circuit on failure.
+ * Return 0 on success or possible success.  Return -1 and mark the
+ * introduction circuit for close on permanent failure.
  *
  * On failure, the caller is responsible for marking the associated
  * rendezvous circuit for close. */