Skip to content

Commit

Permalink
Merge pull request EmilHernvall#11 from Dirbaio/patch-1
Browse files Browse the repository at this point in the history
Fix typo in label max length
  • Loading branch information
EmilHernvall authored Dec 7, 2020
2 parents 506c61c + f9b445d commit 1a62605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter2.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ We'll also need a function for writing query names in labeled form:
fn write_qname(&mut self, qname: &str) -> Result<()> {
for label in qname.split('.') {
let len = label.len();
if len > 0x34 {
if len > 0x3f {
return Err("Single label exceeds 63 characters of length".into());
}

Expand Down

0 comments on commit 1a62605

Please sign in to comment.