aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-01 21:46:27 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-01 21:46:27 +0000
commitb3907865822a932a2cf0b3dd177a6831e1df0787 (patch)
tree547a0be669cac6038aa9ec3e963e4b9a4053de01 /src/or/rendservice.c
parentce79bab7f1880136eb511195eb670c1cc06cbc69 (diff)
downloadtor-b3907865822a932a2cf0b3dd177a6831e1df0787.tar
tor-b3907865822a932a2cf0b3dd177a6831e1df0787.tar.gz
Hidden service operators had a bug in version 1 style INTRODUCE cells
that made them fail. Fix the bug, and revert clients to use version 0 until 0.0.9pre4 is obsolete. svn:r2641
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index e9b1d3ed7..b1c4717d8 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -418,8 +418,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, size_t request_l
return -1;
}
if ((version == 0 && !is_legal_nickname(rp_nickname)) ||
- (version == 1 && !is_legal_nickname_or_hexdigest(rp_nickname)) ||
- (int)strspn(buf,LEGAL_NICKNAME_CHARACTERS) != ptr-buf) {
+ (version == 1 && !is_legal_nickname_or_hexdigest(rp_nickname))) {
log_fn(LOG_WARN, "Bad nickname in INTRODUCE2 cell.");
return -1;
}