diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-24 19:08:07 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-24 19:08:07 +0000 |
commit | defe1e5f3cd464f9b499d7b71f5fe49b917f6ca7 (patch) | |
tree | ae3ea63ac4b9fceb3cf259aac4962cb060433eb4 /src/or/rendservice.c | |
parent | 0b36c29c4d3387e3d56b77b396e9d0598860193a (diff) | |
download | tor-defe1e5f3cd464f9b499d7b71f5fe49b917f6ca7.tar.gz tor-defe1e5f3cd464f9b499d7b71f5fe49b917f6ca7.zip |
start generating new version of introduce1 cells
svn:r2586
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 028c2010dc..f44e1d34e7 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -400,13 +400,15 @@ rend_service_introduce(circuit_t *circuit, const char *request, size_t request_l len = r; if (*buf == 1) { rp_nickname = buf+1; - nickname_field_len = HEX_DIGEST_LEN+2; + nickname_field_len = MAX_HEX_NICKNAME_LEN+1; version = 1; } else { nickname_field_len = MAX_NICKNAME_LEN+1; rp_nickname = buf; version = 0; } + /* XXX when 0.0.8.1 and 0.0.9pre3-4 are obsolete, change this to + * reject version != 1. */ ptr=memchr(rp_nickname,0,nickname_field_len); if (!ptr || ptr == rp_nickname) { log_fn(LOG_WARN, "Couldn't find a null-padded nickname in INTRODUCE2 cell"); |