1
0
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:
Mike Morrison 2018-06-07 09:31:49 -07:00 committed by Develo
parent 73d36bbc80
commit ea4720b03e

View File

@ -551,6 +551,7 @@ void MDNSResponder::_parsePacket(){
if (tmp8 & 0xC0) { // Compressed pointer
uint16_t offset = ((((uint16_t)tmp8) & ~0xC0) << 8) | _conn_read8();
if (_conn->isValidOffset(offset)) {
if (0 == last_bufferpos)
last_bufferpos = _conn->tell();
#ifdef DEBUG_ESP_MDNS_RX
DEBUG_ESP_PORT.print("Compressed pointer, jumping from ");