mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
net/dns_resolver: consolidate namelen checks in dns_query
Consolidate the namelen checks and return -EINVAL early if needed. Drop the namelen == 0 check since it is covered by namelen < 3. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260525095400.821912-3-thorsten.blum@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
aa064a614e
commit
f289c0664f
1 changed files with 1 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue