mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
only complain when rejecting a descriptor if it has contact info
This commit is contained in:
parent
2bcb90a308
commit
2ebd22152e
@ -523,7 +523,7 @@ authdir_wants_to_reject_router(routerinfo_t *ri, const char **msg,
|
|||||||
/* Okay. Now check whether the fingerprint is recognized. */
|
/* Okay. Now check whether the fingerprint is recognized. */
|
||||||
uint32_t status = dirserv_router_get_status(ri, msg);
|
uint32_t status = dirserv_router_get_status(ri, msg);
|
||||||
time_t now;
|
time_t now;
|
||||||
int severity = complain ? LOG_NOTICE : LOG_INFO;
|
int severity = (complain && ri->contact_info) ? LOG_NOTICE : LOG_INFO;
|
||||||
tor_assert(msg);
|
tor_assert(msg);
|
||||||
if (status & FP_REJECT)
|
if (status & FP_REJECT)
|
||||||
return -1; /* msg is already set. */
|
return -1; /* msg is already set. */
|
||||||
|
Loading…
Reference in New Issue
Block a user