mirror of
https://github.com/EmilHernvall/dnsguide.git
synced 2024-12-22 21:34:30 +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<()> {
|
fn write_qname(&mut self, qname: &str) -> Result<()> {
|
||||||
for label in qname.split('.') {
|
for label in qname.split('.') {
|
||||||
let len = label.len();
|
let len = label.len();
|
||||||
if len > 0x34 {
|
if len > 0x3f {
|
||||||
return Err("Single label exceeds 63 characters of length".into());
|
return Err("Single label exceeds 63 characters of length".into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ impl BytePacketBuffer {
|
|||||||
fn write_qname(&mut self, qname: &str) -> Result<()> {
|
fn write_qname(&mut self, qname: &str) -> Result<()> {
|
||||||
for label in qname.split('.') {
|
for label in qname.split('.') {
|
||||||
let len = label.len();
|
let len = label.len();
|
||||||
if len > 0x34 {
|
if len > 0x3f {
|
||||||
return Err("Single label exceeds 63 characters of length".into());
|
return Err("Single label exceeds 63 characters of length".into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ impl BytePacketBuffer {
|
|||||||
fn write_qname(&mut self, qname: &str) -> Result<()> {
|
fn write_qname(&mut self, qname: &str) -> Result<()> {
|
||||||
for label in qname.split('.') {
|
for label in qname.split('.') {
|
||||||
let len = label.len();
|
let len = label.len();
|
||||||
if len > 0x34 {
|
if len > 0x3f {
|
||||||
return Err("Single label exceeds 63 characters of length".into());
|
return Err("Single label exceeds 63 characters of length".into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ impl BytePacketBuffer {
|
|||||||
fn write_qname(&mut self, qname: &str) -> Result<()> {
|
fn write_qname(&mut self, qname: &str) -> Result<()> {
|
||||||
for label in qname.split('.') {
|
for label in qname.split('.') {
|
||||||
let len = label.len();
|
let len = label.len();
|
||||||
if len > 0x34 {
|
if len > 0x3f {
|
||||||
return Err("Single label exceeds 63 characters of length".into());
|
return Err("Single label exceeds 63 characters of length".into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user