mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
acc657692a
Fix the size check added to dns_resolver_preparse() for the V1 server-list
header so that it doesn't give EINVAL if the size supplied is the same as
the size of the header struct (which should be valid).
This can be tested with:
echo -n -e '\0\0\01\xff\0\0' | keyctl padd dns_resolver desc @p
which will give "add_key: Invalid argument" without this fix.
Fixes:
|
||
---|---|---|
.. | ||
dns_key.c | ||
dns_query.c | ||
internal.h | ||
Kconfig | ||
Makefile |