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 7d215b3d7b..37172c17ba 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -541,7 +541,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 (!WRA_WAS_ADDED(dirserv_add_descriptor(ri, &m))) { log_err(LD_GENERAL,"Unable to add own descriptor to directory: %s", m?m:"<unknown error>"); return -1; |