mirror of
https://github.com/EmilHernvall/dnsguide.git
synced 2024-12-22 20:54:17 +07:00
Fixed qname parsing issue
This commit is contained in:
parent
39ccac90a7
commit
b69253ebb6
@ -431,7 +431,7 @@ impl BytePacketBuffer {
|
||||
|
||||
// If len has the two most significant bit are set, it represents a jump to
|
||||
// some other offset in the packet:
|
||||
if (len & 0xC0) > 0 {
|
||||
if (len & 0xC0) == 0xC0 {
|
||||
// Update the buffer position to a point past the current
|
||||
// label. We don't need to touch it any further.
|
||||
if !jumped {
|
||||
|
@ -87,7 +87,7 @@ impl BytePacketBuffer {
|
||||
// set, represents a offset relative to the start of the buffer. We
|
||||
// handle this by jumping to the offset, setting a flag to indicate
|
||||
// that we shouldn't update the shared buffer position once done.
|
||||
if (len & 0xC0) > 0 {
|
||||
if (len & 0xC0) == 0xC0 {
|
||||
|
||||
// When a jump is performed, we only modify the shared buffer
|
||||
// position once, and avoid making the change later on.
|
||||
|
@ -87,7 +87,7 @@ impl BytePacketBuffer {
|
||||
// set, represents a offset relative to the start of the buffer. We
|
||||
// handle this by jumping to the offset, setting a flag to indicate
|
||||
// that we shouldn't update the shared buffer position once done.
|
||||
if (len & 0xC0) > 0 {
|
||||
if (len & 0xC0) == 0xC0 {
|
||||
|
||||
// When a jump is performed, we only modify the shared buffer
|
||||
// position once, and avoid making the change later on.
|
||||
|
@ -87,7 +87,7 @@ impl BytePacketBuffer {
|
||||
// set, represents a offset relative to the start of the buffer. We
|
||||
// handle this by jumping to the offset, setting a flag to indicate
|
||||
// that we shouldn't update the shared buffer position once done.
|
||||
if (len & 0xC0) > 0 {
|
||||
if (len & 0xC0) == 0xC0 {
|
||||
|
||||
// When a jump is performed, we only modify the shared buffer
|
||||
// position once, and avoid making the change later on.
|
||||
|
@ -87,7 +87,7 @@ impl BytePacketBuffer {
|
||||
// set, represents a offset relative to the start of the buffer. We
|
||||
// handle this by jumping to the offset, setting a flag to indicate
|
||||
// that we shouldn't update the shared buffer position once done.
|
||||
if (len & 0xC0) > 0 {
|
||||
if (len & 0xC0) == 0xC0 {
|
||||
|
||||
// When a jump is performed, we only modify the shared buffer
|
||||
// position once, and avoid making the change later on.
|
||||
|
@ -87,7 +87,7 @@ impl BytePacketBuffer {
|
||||
// set, represents a offset relative to the start of the buffer. We
|
||||
// handle this by jumping to the offset, setting a flag to indicate
|
||||
// that we shouldn't update the shared buffer position once done.
|
||||
if (len & 0xC0) > 0 {
|
||||
if (len & 0xC0) == 0xC0 {
|
||||
|
||||
// When a jump is performed, we only modify the shared buffer
|
||||
// position once, and avoid making the change later on.
|
||||
|
Loading…
Reference in New Issue
Block a user