]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
only complain when rejecting a descriptor if it has contact info
authorRoger Dingledine <arma@torproject.org>
Tue, 17 Nov 2009 12:39:15 +0000 (07:39 -0500)
committerRoger Dingledine <arma@torproject.org>
Tue, 17 Nov 2009 12:39:15 +0000 (07:39 -0500)
src/or/dirserv.c

index d9a5decd6edb6a14f132e69b71e92d9704b6c093..3700cd134ed37971f8cc9307655d02e117b0d2ff 100644 (file)
@@ -523,7 +523,7 @@ authdir_wants_to_reject_router(routerinfo_t *ri, const char **msg,
   /* Okay.  Now check whether the fingerprint is recognized. */
   uint32_t status = dirserv_router_get_status(ri, msg);
   time_t now;
-  int severity = complain ? LOG_NOTICE : LOG_INFO;
+  int severity = (complain && ri->contact_info) ? LOG_NOTICE : LOG_INFO;
   tor_assert(msg);
   if (status & FP_REJECT)
     return -1; /* msg is already set. */