summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-08-31 06:14:37 +0000
committerRoger Dingledine <arma@torproject.org>2005-08-31 06:14:37 +0000
commit711cad94ed8c5b11d9af62b0a28971eaf5a04d85 (patch)
tree862f4b312f34b60d792e33113c5a54a513b0cc53 /src/or/router.c
parent0b92c28d84c1e0ac30a6b21e0189b4968961e008 (diff)
downloadtor-711cad94ed8c5b11d9af62b0a28971eaf5a04d85.tar.gz
tor-711cad94ed8c5b11d9af62b0a28971eaf5a04d85.zip
when we think a router is unreachable, pass the message back to the
server's logs, and make it a 'warn'. also, fix a memory leak for rejected router descriptors. svn:r4889
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 27d8154ea2..43794dfe45 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -329,7 +329,7 @@ init_keys(void)
log_fn(LOG_ERR, "Error adding own fingerprint to approved set");
return -1;
}
- if (dirserv_add_descriptor(tmp, &m) != 1) {
+ if (dirserv_add_descriptor(tmp, &m) < 0) {
log(LOG_ERR, "Unable to add own descriptor to directory: %s",
m?m:"<unknown error>");
return -1;