Merge pull request #27 from NenX/master

examples: fix incorrect hexadecimal representation
This commit is contained in:
Emil Hernvall 2024-09-09 09:43:57 +02:00 committed by GitHub
commit 4a7b7bea93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -166,7 +166,7 @@ impl BytePacketBuffer {
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());
}

View File

@ -166,7 +166,7 @@ impl BytePacketBuffer {
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());
}

View File

@ -166,7 +166,7 @@ impl BytePacketBuffer {
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());
}

View File

@ -166,7 +166,7 @@ impl BytePacketBuffer {
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());
}