]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make our digest-mismatch warnings a touch better
authorNick Mathewson <nickm@torproject.org>
Thu, 24 Sep 2015 21:45:29 +0000 (17:45 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 24 Sep 2015 21:45:33 +0000 (17:45 -0400)
src/or/routerlist.c

index 8bd80391bc5752f95082f3b175a3276a6c0e8685..03729bda5ce9b35a4112dcfe8da4ae532502f49e 100644 (file)
@@ -4964,6 +4964,12 @@ routerinfo_incompatible_with_extrainfo(const routerinfo_t *ri,
     goto err;
   }
 
+  if (!digest256_matches && !digest_matches) {
+    if (msg) *msg = "Neither digest256 or digest matched "
+               "digest from routerdesc";
+    goto err;
+  }
+
   if (!digest256_matches) {
     if (msg) *msg = "Extrainfo digest did not match digest256 from routerdesc";
     goto err; /* Digest doesn't match declared value. */