Skip to content
Commit 39ef0435 authored by Dmitriy Linikov's avatar Dmitriy Linikov Committed by Gregory Nutt
Browse files

Merged in hardlulz/modem-3.0-nuttx/fix-parsing-dns-response (pull request #605)



Fixed parsing of DNS response packets having compressed names ending with pointer.

There were troubles parsing response packets which have compression of
QNAME/NAME field when only trailing part of the name (not the whole name)
is replaced with pointer to another part of the packet.
This commit fixes parsing of such packets.

Also I added checks to keep parsing only in bounds of the read part
of DNS response packet.

Approved-by: default avatarGregory Nutt <gnutt@nuttx.org>
parent df231a96
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment