diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-29 18:55:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:46 -0500 |
commit | 6ae15544ccfc3ff5d97565ad41ba7f57c7d29b0f (patch) | |
tree | abc799e8baa84d6737f6711eb29fea02f0eb6a0f /source/nsswitch/wb_common.c | |
parent | 25970a54298f2888b5c3cd64496dbd0c9d627a05 (diff) | |
download | samba-6ae15544ccfc3ff5d97565ad41ba7f57c7d29b0f.tar.gz samba-6ae15544ccfc3ff5d97565ad41ba7f57c7d29b0f.tar.xz samba-6ae15544ccfc3ff5d97565ad41ba7f57c7d29b0f.zip |
r14760: Fix #3642, ensure we don't call FD_SET on read with fd == -1.
Jeremy.
Diffstat (limited to 'source/nsswitch/wb_common.c')
-rw-r--r-- | source/nsswitch/wb_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/nsswitch/wb_common.c b/source/nsswitch/wb_common.c index 0e209279411..dfefeb9f754 100644 --- a/source/nsswitch/wb_common.c +++ b/source/nsswitch/wb_common.c @@ -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; |