aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
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 387169d956..db2a7f3b1f 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;
}