Skip to content

Commit

Permalink
Take the current header truncated bit into account
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Laidlaw committed Feb 23, 2021
1 parent ac8bc7f commit 31b3fb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/proto/src/op/message.rs
Expand Up @@ -801,7 +801,8 @@ where
nameserver_count: nameserver_count.0,
additional_count: additional_count.0,
};
let was_truncated = answer_count.1 || nameserver_count.1 || additional_count.1;
let was_truncated =
header.truncated() || answer_count.1 || nameserver_count.1 || additional_count.1;

place.replace(encoder, update_header_counts(header, was_truncated, counts))?;
Ok(())
Expand Down

0 comments on commit 31b3fb2

Please sign in to comment.