summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-19 18:12:31 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-19 18:12:31 +0000
commit0a27b532521ec7d246e32a3a1d01723db326f638 (patch)
treee32b4a718751dde0205f25065383efc308503fe5 /src/or/router.c
parent58d27cfc2974af6d70a1b616f29230f5cc8d6620 (diff)
downloadtor-0a27b532521ec7d246e32a3a1d01723db326f638.tar.gz
tor-0a27b532521ec7d246e32a3a1d01723db326f638.zip
r12802@catbus: nickm | 2007-05-19 14:12:27 -0400
clear some ram when freeing it; add some more checks to assert_routerlist_ok. svn:r10218
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 3bd8d41f8f..f7418ab00e 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -334,8 +334,7 @@ init_keys(void)
log_err(LD_GENERAL,"Generated a routerinfo we couldn't parse.");
return -1;
}
- if (dirserv_add_descriptor(ri, &m)
- < 0) {
+ if (dirserv_add_descriptor(ri, &m) < 0) {
log_err(LD_GENERAL,"Unable to add own descriptor to directory: %s",
m?m:"<unknown error>");
return -1;