From: David Goulet Date: Wed, 12 May 2021 18:44:04 +0000 (-0400) Subject: relay: We might be noting down an unknown DNS error type X-Git-Tag: tor-0.4.7.1-alpha~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4718e4db9779ba11baf7ee07e093d0c9e6f6bae;p=thirdparty%2Ftor.git relay: We might be noting down an unknown DNS error type Signed-off-by: David Goulet --- diff --git a/src/feature/stats/rephist.c b/src/feature/stats/rephist.c index 01fa644b9e..50f6a11ae1 100644 --- a/src/feature/stats/rephist.c +++ b/src/feature/stats/rephist.c @@ -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; }