dns_resolver: assure that dns_query() result is null-terminated
authorManuel Schölling <manuel.schoelling@gmx.de>
Sat, 7 Jun 2014 21:57:25 +0000 (23:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 07:12:04 +0000 (00:12 -0700)
commit84a7c0b1db1c17d5ded8d3800228a608e1070b40
tree95c67ab040a0fe4ade6d48902d6b5309c7f60370
parent2346829e641b804ece9ac9298136b56d9567c278
dns_resolver: assure that dns_query() result is null-terminated

dns_query() credulously assumes that keys are null-terminated and
returns a copy of a memory block that is off by one.

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