diff options
author | Roger Dingledine <arma@torproject.org> | 2007-11-29 15:25:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-11-29 15:25:04 +0000 |
commit | aaf35cccf7ac60c17dac687127ec82c612232836 (patch) | |
tree | c382f9c21bb2812178fe1eb85147432c65e73b0c /src/or/directory.c | |
parent | 0f22c584cdc797e20f4aef74e5312ebda76d05fa (diff) | |
download | tor-aaf35cccf7ac60c17dac687127ec82c612232836.tar.gz tor-aaf35cccf7ac60c17dac687127ec82c612232836.zip |
karsten's second refactoring patch
svn:r12607
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 4743f95782..ab62230008 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -864,7 +864,7 @@ directory_send_command(dir_connection_t *conn, tor_assert(!payload); /* this must be true or we wouldn't be doing the lookup */ - tor_assert(strlen(resource) <= REND_SERVICE_ID_LEN); + tor_assert(strlen(resource) <= REND_SERVICE_ID_LEN_BASE32); /* This breaks the function abstraction. */ strlcpy(conn->rend_query, resource, sizeof(conn->rend_query)); @@ -3165,7 +3165,7 @@ directory_get_from_hs_dir(const char *desc_id, const char *query) char desc_id_base32[REND_DESC_ID_V2_LEN_BASE32 + 1]; tor_assert(desc_id); tor_assert(query); - tor_assert(strlen(query) == REND_SERVICE_ID_LEN); + tor_assert(strlen(query) == REND_SERVICE_ID_LEN_BASE32); /* Determine responsible dirs. */ if (hid_serv_get_responsible_directories(responsible_dirs, desc_id) < 0) { /* XXX020 make this louder once we have some v2hidservs */ |