summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/src/ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/ip.c b/src/src/ip.c
index ead7299bc..cb54f1617 100644
--- a/src/src/ip.c
+++ b/src/src/ip.c
@@ -499,7 +499,7 @@ do
/* If the socket is ready, break out of the loop. */
}
-while (!FD_ISSET(fd, &select_inset));
+while (rc < 0 || !FD_ISSET(fd, &select_inset));
return TRUE;
}