commit d4718e4db9779ba11baf7ee07e093d0c9e6f6bae
parent 3fbd510c527b64bb83e87d78e81f1ad72def5f5f
Author: David Goulet <dgoulet@torproject.org>
Date: Wed, 12 May 2021 14:44:04 -0400
relay: We might be noting down an unknown DNS error type
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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;
}