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 c7d32e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/proto/src/op/message.rs
Expand Up @@ -801,7 +801,7 @@ 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 c7d32e0

Please sign in to comment.