mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-11 12:50:58 +08: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);
|
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
|
/* Check for the correct header layout and a matching
|
||||||
question. */
|
question. */
|
||||||
int matching_query = 0; /* Default to no matching query. */
|
int matching_query = 0; /* Default to no matching query. */
|
||||||
|
Loading…
Reference in New Issue
Block a user