diff options
author | Roger Dingledine <arma@torproject.org> | 2008-02-20 00:30:41 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-02-20 00:30:41 +0000 |
commit | e9474ed28eb79be92eaa68970ea24c41717cecf5 (patch) | |
tree | 9f69bb961a3bbc2229652f7b4f300293a262e00b /src/or/rendcommon.c | |
parent | 56a7c9238e30555cc536d5cf13664660a8b5bc82 (diff) | |
download | tor-e9474ed28eb79be92eaa68970ea24c41717cecf5.tar.gz tor-e9474ed28eb79be92eaa68970ea24c41717cecf5.zip |
if you thought r13604 was a kludge, how about this.
svn:r13605
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 26454d24bd..e7ac4a1f0f 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -510,7 +510,7 @@ rend_encode_service_descriptor(rend_service_descriptor_t *desc, base16_encode(ipoint+1, HEX_DIGEST_LEN+1, intro->extend_info->identity_digest, DIGEST_LEN); - tor_assert(buflen >= cp-*str_out); /* XXX021 This assert is a kludge. */ + tor_assert(buflen + *str_out >= cp); /* XXX021 This assert is a kludge. */ strlcpy(cp, ipoint, buflen-(cp-*str_out)); cp += strlen(ipoint)+1; } |