]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
relay: We might be noting down an unknown DNS error type
authorDavid Goulet <dgoulet@torproject.org>
Wed, 12 May 2021 18:44:04 +0000 (14:44 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 12 May 2021 18:44:04 +0000 (14:44 -0400)
Signed-off-by: David Goulet <dgoulet@torproject.org>
src/feature/stats/rephist.c

index 01fa644b9e605acd680eaf886657b7f7d8f72f39..50f6a11ae1c76fb04812d38fc0fb5b0dda44dfa4 100644 (file)
@@ -325,7 +325,8 @@ void
 rep_hist_note_dns_error(int type, uint8_t error)
 {
   dns_stats_t *dns_stats = get_dns_stats_by_type(type);
-  if (BUG(!dns_stats)) {
+  /* Unsupported DNS query type. */
+  if (!dns_stats) {
     return;
   }