1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

r14760: Fix #3642, ensure we don't call FD_SET on read with fd == -1.

Jeremy.
(This used to be commit 6ae15544ccfc3ff5d97565ad41ba7f57c7d29b0f)
This commit is contained in:
Jeremy Allison 2006-03-29 18:55:39 +00:00 committed by Gerald (Jerry) Carter
parent 57909a1540
commit 70b59a3b20

View File

@ -411,6 +411,10 @@ static int read_sock(void *buffer, int count)
int result = 0, nread = 0;
int total_time = 0, selret;
if (winbindd_fd == -1) {
return -1;
}
/* Read data from socket */
while(nread < count) {
struct timeval tv;