Skip to content
Commit 0fe091bc authored by Charles Hardin's avatar Charles Hardin Committed by Benjamin Cabé
Browse files

net: dns: fix the bounds conditions on the failures and error returns



The loop condition is not the count of the actual tries since the
continue or breaks can occur on the loop and thus a failure count
can falsely match a loop count even when a query is outstanding.

This can be seen when a dual stack resolve is used for IPv4 and IPv6
that has two fds to be used and the interface has only gotten an
IPv6 address. The failures on the IPv4 will indicate a 1 and the break
on the tried attempt on the IPv6 will break the loop on a 1.

Signed-off-by: default avatarCharles Hardin <ckhardin@gmail.com>
parent 6d748db7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment