Skip to content
Commit 951b47fa authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Ioannis Glaropoulos
Browse files

net: dns: dns_pack: Revamp FQDN parsing in answers



Simplify algorithm to skip (aka calculate length) of encoded domain
name in a DNS answer. Now it's fully compliant to RFC 1035 regarding
handling of compressed FQDNs. Additionally, bounds checking is now
performed by the parsing code.

Fixes: #18334

Signed-off-by: default avatarPaul Sokolovsky <paul.sokolovsky@linaro.org>
parent 0bafa7c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment