Changeset 578 for branches/samba-3.3.x/source/nsswitch
- Timestamp:
- Jun 25, 2011, 7:14:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/nsswitch/wb_common.c
r206 r578 241 241 switch (errno) { 242 242 case EINPROGRESS: 243 244 if (fd < 0 || fd >= FD_SETSIZE) { 245 errno = EBADF; 246 goto error_out; 247 } 248 243 249 FD_ZERO(&w_fds); 244 250 FD_SET(fd, &w_fds); … … 384 390 struct timeval tv; 385 391 fd_set r_fds; 386 392 393 if (winbindd_fd < 0 || winbindd_fd >= FD_SETSIZE) { 394 errno = EBADF; 395 winbind_close_sock(); 396 return -1; 397 } 398 387 399 /* Catch pipe close on other end by checking if a read() 388 400 call would not block by calling select(). */ … … 444 456 struct timeval tv; 445 457 fd_set r_fds; 446 458 459 if (winbindd_fd < 0 || winbindd_fd >= FD_SETSIZE) { 460 errno = EBADF; 461 winbind_close_sock(); 462 return -1; 463 } 464 447 465 /* Catch pipe close on other end by checking if a read() 448 466 call would not block by calling select(). */
Note:
See TracChangeset
for help on using the changeset viewer.