aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-07-15 08:28:51 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-07-15 09:00:24 +0200
commitee3639e0fe61a3692adf660e04f9e6d56475ff52 (patch)
treeeadffbd9e72ab96b9110bf74b2c54040bc083125 /resolv
parentadcc572a29169e5b571ab06b1a5bf941985d8fe6 (diff)
downloadglibc-ee3639e0fe61a3692adf660e04f9e6d56475ff52.zip
glibc-ee3639e0fe61a3692adf660e04f9e6d56475ff52.tar.gz
glibc-ee3639e0fe61a3692adf660e04f9e6d56475ff52.tar.bz2
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 <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_send.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c
index 9a3bc58..a70f3de 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. */