diff options
author | Roger Dingledine <arma@torproject.org> | 2005-09-23 08:29:58 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-09-23 08:29:58 +0000 |
commit | 03d0f62da07f1e222d8e67ec71cc79bd7d7a9e1c (patch) | |
tree | e93cd9140718b809e8a6b5241fe29d37f7593080 /src/or/router.c | |
parent | 12e10aeaf21ba6257e9e43b50e1aa6f7069a7f21 (diff) | |
download | tor-03d0f62da07f1e222d8e67ec71cc79bd7d7a9e1c.tar.gz tor-03d0f62da07f1e222d8e67ec71cc79bd7d7a9e1c.zip |
make the numbers in read-history and write-history into uint64s,
so they don't overflow and publish negatives in the descriptor.
fixes bug 193.
svn:r5119
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c index b9cea79113..333ad1e1bc 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -775,7 +775,7 @@ router_rebuild_descriptor(int force) ri->signed_descriptor = tor_malloc(8192); if (router_dump_router_to_string(ri->signed_descriptor, 8192, ri, get_identity_key())<0) { - log_fn(LOG_WARN, "Couldn't dump router to string."); + log_fn(LOG_WARN, "Couldn't allocate string for descriptor."); return -1; } ri->signed_descriptor_len = strlen(ri->signed_descriptor); |