diff options
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 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; |