[tor-commits] [tor/master] Merge remote-tracking branch 'origin/maint-0.2.2'
nickm at torproject.org
nickm at torproject.org
Thu Apr 19 02:40:17 UTC 2012
commit e9dae1ff2e147d2b74fb1ce2836fb9c42f227af4
Merge: 4db5a1e 2d276ab
Author: Nick Mathewson <nickm at torproject.org>
Date: Wed Apr 18 22:30:02 2012 -0400
Merge remote-tracking branch 'origin/maint-0.2.2'
Conflicts:
src/or/rendservice.c
Conflicts were due to new NON_ANONYMOUS_MODE_ENABLED tor2web code; I
think I resolved them correctly.
changes/bug5644 | 5 +++++
src/or/rendservice.c | 14 +++++++-------
2 files changed, 12 insertions(+), 7 deletions(-)
diff --cc src/or/rendservice.c
index 30b0d88,a1daa8a..44e6697
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@@ -1062,11 -907,15 +1062,18 @@@ rend_service_introduce(origin_circuit_
time_t now = time(NULL);
char diffie_hellman_hash[DIGEST_LEN];
time_t *access_time;
- or_options_t *options = get_options();
+ const or_options_t *options = get_options();
+ if (circuit->_base.purpose != CIRCUIT_PURPOSE_S_INTRO) {
+ log_warn(LD_PROTOCOL,
+ "Got an INTRODUCE2 over a non-introduction circuit %d.",
+ circuit->_base.n_circ_id);
+ return -1;
+ }
+
+#ifndef NON_ANONYMOUS_MODE_ENABLED
+ tor_assert(!(circuit->build_state->onehop_tunnel));
+#endif
tor_assert(circuit->rend_data);
base32_encode(serviceid, REND_SERVICE_ID_LEN_BASE32+1,
More information about the tor-commits
mailing list