From: Florian Weimer Date: Thu, 15 Jul 2021 06:28:51 +0000 (+0200) Subject: resolv: Remove unnecessary res_isourserver_p call from send_dg X-Git-Tag: glibc-2.34~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee3639e0fe61a3692adf660e04f9e6d56475ff52;p=thirdparty%2Fglibc.git resolv: Remove unnecessary res_isourserver_p call from send_dg As the comment indicates, the check is unnecessary due to the way the UDP socket is set up. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- diff --git a/resolv/res_send.c b/resolv/res_send.c index 9a3bc5804a6..a70f3dec051 100644 --- a/resolv/res_send.c +++ b/resolv/res_send.c @@ -1343,12 +1343,6 @@ send_dg(res_state statp, return close_and_return_error (statp, resplen2); } - /* Paranoia check. Due to the connected UDP socket, - the kernel has already filtered invalid addresses - for us. */ - if (!res_ourserver_p(statp, &from)) - goto wait; - /* Check for the correct header layout and a matching question. */ int matching_query = 0; /* Default to no matching query. */