aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-12 12:43:13 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-12 12:43:13 +0000
commit6af8d0606f1be27d572f46e8ef03112eedc73928 (patch)
tree20b3858abb8af97d09dbbb0f06c8e59b8af26a66 /src/or/router.c
parent623cb0e311cb2d152b0e2af9bd654707679b38a3 (diff)
downloadtor-6af8d0606f1be27d572f46e8ef03112eedc73928.tar
tor-6af8d0606f1be27d572f46e8ef03112eedc73928.tar.gz
inform unapproved servers when we reject their descriptors
svn:r1263
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 387169d95..db2a7f3b1 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -161,7 +161,7 @@ int init_keys(void) {
return -1;
}
tmp = mydesc = router_get_my_descriptor();
- if (dirserv_add_descriptor(&tmp)) {
+ if (dirserv_add_descriptor(&tmp) != 1) {
log(LOG_ERR, "Unable to add own descriptor to directory.");
return -1;
}