]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Downgrade evdns warnings about weird replies.
authorNick Mathewson <nickm@torproject.org>
Thu, 16 Nov 2017 14:30:19 +0000 (09:30 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 16 Nov 2017 14:30:19 +0000 (09:30 -0500)
evdns is allowed to give us unrecognized object types; it is allowed
to give us non-IPv4 answer types, and it is (even) allowed to give
us empty answers without an error.

Closes ticket 24097.

changes/ticket24097 [new file with mode: 0644]
src/or/dns.c

diff --git a/changes/ticket24097 b/changes/ticket24097
new file mode 100644 (file)
index 0000000..36547a8
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor features (logging):
+    - Downgrade a pair of log messages that could occur when an exit's
+      resolver gave us an unusual (but not forbidden) response.
+      Closes ticket 24097.
index 4194a29a6b1b406bc917f2f4a7ad1d264693f872..7dc3575f53275e1b1c2124646ae196d2861ef825 100644 (file)
@@ -1578,10 +1578,11 @@ evdns_callback(int result, char type, int count, int ttl, void *addresses,
                 escaped_safe_str(hostname));
       tor_free(escaped_address);
     } else if (count) {
-      log_warn(LD_EXIT, "eventdns returned only non-IPv4 answers for %s.",
+      log_info(LD_EXIT, "eventdns returned only unrecognized answer types "
+               " for %s.",
                escaped_safe_str(string_address));
     } else {
-      log_warn(LD_BUG, "eventdns returned no addresses or error for %s!",
+      log_info(LD_EXIT, "eventdns returned no addresses or error for %s.",
                escaped_safe_str(string_address));
     }
   }