aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-05-12 14:44:04 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-05-12 14:44:04 -0400
commitd4718e4db9779ba11baf7ee07e093d0c9e6f6bae (patch)
tree12059a7a328af3846b34f7e477afaff037d91690
parent3fbd510c527b64bb83e87d78e81f1ad72def5f5f (diff)
downloadtor-d4718e4db9779ba11baf7ee07e093d0c9e6f6bae.tar.gz
tor-d4718e4db9779ba11baf7ee07e093d0c9e6f6bae.zip
relay: We might be noting down an unknown DNS error type
Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r--src/feature/stats/rephist.c3
1 files changed, 2 insertions, 1 deletions
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;
}