mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
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>
This commit is contained in:
parent
adcc572a29
commit
ee3639e0fe
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user