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:
Florian Weimer 2021-07-15 08:28:51 +02:00
parent adcc572a29
commit ee3639e0fe

View file

@ -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. */