mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
relay: We might be noting down an unknown DNS error type
Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
3fbd510c52
commit
d4718e4db9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user