Re: [PATCH net-next] net/dns_resolver: consolidate namelen checks in dns_query
From: Simon Horman
Date: Wed May 27 2026 - 08:03:42 EST
On Mon, May 25, 2026 at 11:54:01AM +0200, Thorsten Blum wrote:
> 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@xxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>