Commit d4718e4d authored by David Goulet's avatar David Goulet 🆘
Browse files

relay: We might be noting down an unknown DNS error type


Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent 3fbd510c
...@@ -325,7 +325,8 @@ void ...@@ -325,7 +325,8 @@ void
rep_hist_note_dns_error(int type, uint8_t error) rep_hist_note_dns_error(int type, uint8_t error)
{ {
dns_stats_t *dns_stats = get_dns_stats_by_type(type); dns_stats_t *dns_stats = get_dns_stats_by_type(type);
if (BUG(!dns_stats)) { /* Unsupported DNS query type. */
if (!dns_stats) {
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment