--- nsswitch/wb_common.c 2005-11-09 10:28:56.000000000 -0800 +++ nsswitch/wb_common.c.new 2006-03-29 10:27:00.000000000 -0800 @@ -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;