Skip to content

Commit

Permalink
Merge branch 'rfc-1123' of https://github.com/niclabs/dns-rust into r…
Browse files Browse the repository at this point in the history
…fc-1123
  • Loading branch information
Ephyy committed Jan 10, 2024
2 parents 41f908f + f360783 commit e220735
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/async_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ impl AsyncResolver {
let rcode = header.get_rcode();
if rcode == 0 {
let answer = dns_mgs.get_answer();
if answer.len() == 0 {
Err(ClientError::TemporaryError("no answer found"))?;
}
return Ok(answer);
}
match rcode {
Expand Down

0 comments on commit e220735

Please sign in to comment.