dns_resolver: Do not accept domain names longer than 255 chars
authorManuel Schölling <manuel.schoelling@gmx.de>
Sat, 31 May 2014 21:37:40 +0000 (23:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jun 2014 07:05:53 +0000 (00:05 -0700)
commit9638f6713ff556bdc34e9d18eeb7c1b25b35e5ce
tree15d915b3f585a6ad528bfa936a7d44bec9093ab2
parent555878b9ee83b08701100baa0fd79d3954a37ce7
dns_resolver: Do not accept domain names longer than 255 chars

According to RFC1035 "[...] the total length of a domain name (i.e.,
label octets and label length octets) is restricted to 255 octets or
less."

Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dns_resolver/dns_query.c