svn commit: samba r14759 - in trunk/source/nsswitch: .
jra at samba.org
jra at samba.org
Wed Mar 29 18:53:58 GMT 2006
Author: jra
Date: 2006-03-29 18:53:58 +0000 (Wed, 29 Mar 2006)
New Revision: 14759
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14759
Log:
Fix #3642, ensure we don't call FD_SET on read with fd == -1.
Jeremy.
Modified:
trunk/source/nsswitch/wb_common.c
Changeset:
Modified: trunk/source/nsswitch/wb_common.c
===================================================================
--- trunk/source/nsswitch/wb_common.c 2006-03-29 18:24:34 UTC (rev 14758)
+++ trunk/source/nsswitch/wb_common.c 2006-03-29 18:53:58 UTC (rev 14759)
@@ -411,6 +411,10 @@
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;
More information about the samba-cvs
mailing list