Fixed qname parsing issue

This commit is contained in:
Emil Hernvall 2018-03-19 11:37:16 +01:00
parent 39ccac90a7
commit b69253ebb6
6 changed files with 6 additions and 6 deletions

View File

@ -431,7 +431,7 @@ impl BytePacketBuffer {
// If len has the two most significant bit are set, it represents a jump to // If len has the two most significant bit are set, it represents a jump to
// some other offset in the packet: // some other offset in the packet:
if (len & 0xC0) > 0 { if (len & 0xC0) == 0xC0 {
// Update the buffer position to a point past the current // Update the buffer position to a point past the current
// label. We don't need to touch it any further. // label. We don't need to touch it any further.
if !jumped { if !jumped {

View File

@ -87,7 +87,7 @@ impl BytePacketBuffer {
// set, represents a offset relative to the start of the buffer. We // set, represents a offset relative to the start of the buffer. We
// handle this by jumping to the offset, setting a flag to indicate // handle this by jumping to the offset, setting a flag to indicate
// that we shouldn't update the shared buffer position once done. // 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 // When a jump is performed, we only modify the shared buffer
// position once, and avoid making the change later on. // position once, and avoid making the change later on.

View File

@ -87,7 +87,7 @@ impl BytePacketBuffer {
// set, represents a offset relative to the start of the buffer. We // set, represents a offset relative to the start of the buffer. We
// handle this by jumping to the offset, setting a flag to indicate // handle this by jumping to the offset, setting a flag to indicate
// that we shouldn't update the shared buffer position once done. // 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 // When a jump is performed, we only modify the shared buffer
// position once, and avoid making the change later on. // position once, and avoid making the change later on.

View File

@ -87,7 +87,7 @@ impl BytePacketBuffer {
// set, represents a offset relative to the start of the buffer. We // set, represents a offset relative to the start of the buffer. We
// handle this by jumping to the offset, setting a flag to indicate // handle this by jumping to the offset, setting a flag to indicate
// that we shouldn't update the shared buffer position once done. // 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 // When a jump is performed, we only modify the shared buffer
// position once, and avoid making the change later on. // position once, and avoid making the change later on.

View File

@ -87,7 +87,7 @@ impl BytePacketBuffer {
// set, represents a offset relative to the start of the buffer. We // set, represents a offset relative to the start of the buffer. We
// handle this by jumping to the offset, setting a flag to indicate // handle this by jumping to the offset, setting a flag to indicate
// that we shouldn't update the shared buffer position once done. // 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 // When a jump is performed, we only modify the shared buffer
// position once, and avoid making the change later on. // position once, and avoid making the change later on.

View File

@ -87,7 +87,7 @@ impl BytePacketBuffer {
// set, represents a offset relative to the start of the buffer. We // set, represents a offset relative to the start of the buffer. We
// handle this by jumping to the offset, setting a flag to indicate // handle this by jumping to the offset, setting a flag to indicate
// that we shouldn't update the shared buffer position once done. // 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 // When a jump is performed, we only modify the shared buffer
// position once, and avoid making the change later on. // position once, and avoid making the change later on.