Changeset 593 for trunk/server/nsswitch
- Timestamp:
- Jul 1, 2011, 10:18:23 AM (14 years ago)
- Location:
- trunk/server/nsswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/nsswitch/libwbclient/wbc_async.c
r414 r593 510 510 int selret; 511 511 512 if (fd == -1) {512 if (fd < 0 || fd >= FD_SETSIZE) { 513 513 return true; 514 514 } -
trunk/server/nsswitch/wb_common.c
r590 r593 245 245 case EINPROGRESS: 246 246 FD_ZERO(&w_fds); 247 if (fd < 0 || fd >= FD_SETSIZE) { 248 errno = EBADF; 249 goto error_out; 250 } 247 251 FD_SET(fd, &w_fds); 248 252 tv.tv_sec = CONNECT_TIMEOUT - wait_time; … … 392 396 393 397 FD_ZERO(&r_fds); 398 if (winbindd_fd < 0 || winbindd_fd >= FD_SETSIZE) { 399 errno = EBADF; 400 winbind_close_sock(); 401 return -1; 402 } 394 403 FD_SET(winbindd_fd, &r_fds); 395 404 ZERO_STRUCT(tv); … … 452 461 453 462 FD_ZERO(&r_fds); 463 if (winbindd_fd < 0 || winbindd_fd >= FD_SETSIZE) { 464 errno = EBADF; 465 winbind_close_sock(); 466 return -1; 467 } 454 468 FD_SET(winbindd_fd, &r_fds); 455 469 ZERO_STRUCT(tv);
Note:
See TracChangeset
for help on using the changeset viewer.