diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-01-20 20:18:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-01-20 20:18:32 +0000 |
commit | fd41cbcadf93698f1e07343d82b92863671f0542 (patch) | |
tree | 5658a0157981022790bc09eaea6e55fd49994180 /src/or/router.c | |
parent | 362d89fb6292390654b818cd0dc8e83d1e76bd6f (diff) | |
download | tor-fd41cbcadf93698f1e07343d82b92863671f0542.tar.gz tor-fd41cbcadf93698f1e07343d82b92863671f0542.zip |
Have reason string for serverdesc post requests contain actual serverdesc status. Also fix return values of dirserv_add_descriptor to work as advertised.
svn:r3391
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index 514f49c599..771d32ad67 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -315,13 +315,15 @@ int init_keys(void) { return -1; } if (authdir_mode(options)) { + const char *m; /* We need to add our own fingerprint so it gets recognized. */ if (dirserv_add_own_fingerprint(options->Nickname, get_identity_key())) { log_fn(LOG_ERR, "Error adding own fingerprint to approved set"); return -1; } - if (dirserv_add_descriptor(&tmp) != 1) { - log(LOG_ERR, "Unable to add own descriptor to directory."); + if (dirserv_add_descriptor(&tmp, &m) != 1) { + log(LOG_ERR, "Unable to add own descriptor to directory: %s", + m?m:"<unknown error>"); return -1; } } |