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:
parent
57909a1540
commit
70b59a3b20
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user