mirror of
https://github.com/EmilHernvall/dnsguide.git
synced 2024-12-22 10:04:16 +07:00
Merge pull request #27 from NenX/master
examples: fix incorrect hexadecimal representation
This commit is contained in:
commit
4a7b7bea93
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user