mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
fix issue with compressed pointer (issue 4648) (#4752)
This commit is contained in:
parent
73d36bbc80
commit
ea4720b03e
@ -551,7 +551,8 @@ void MDNSResponder::_parsePacket(){
|
|||||||
if (tmp8 & 0xC0) { // Compressed pointer
|
if (tmp8 & 0xC0) { // Compressed pointer
|
||||||
uint16_t offset = ((((uint16_t)tmp8) & ~0xC0) << 8) | _conn_read8();
|
uint16_t offset = ((((uint16_t)tmp8) & ~0xC0) << 8) | _conn_read8();
|
||||||
if (_conn->isValidOffset(offset)) {
|
if (_conn->isValidOffset(offset)) {
|
||||||
last_bufferpos = _conn->tell();
|
if (0 == last_bufferpos)
|
||||||
|
last_bufferpos = _conn->tell();
|
||||||
#ifdef DEBUG_ESP_MDNS_RX
|
#ifdef DEBUG_ESP_MDNS_RX
|
||||||
DEBUG_ESP_PORT.print("Compressed pointer, jumping from ");
|
DEBUG_ESP_PORT.print("Compressed pointer, jumping from ");
|
||||||
DEBUG_ESP_PORT.print(last_bufferpos);
|
DEBUG_ESP_PORT.print(last_bufferpos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user