Ignore:
Timestamp:
Jun 25, 2011, 7:14:41 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.15 (security update)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/nsswitch/wb_common.c

    r206 r578  
    241241                switch (errno) {
    242242                        case EINPROGRESS:
     243
     244                                if (fd < 0 || fd >= FD_SETSIZE) {
     245                                        errno = EBADF;
     246                                        goto error_out;
     247                                }
     248
    243249                                FD_ZERO(&w_fds);
    244250                                FD_SET(fd, &w_fds);
     
    384390                struct timeval tv;
    385391                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
    387399                /* Catch pipe close on other end by checking if a read()
    388400                   call would not block by calling select(). */
     
    444456                struct timeval tv;
    445457                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
    447465                /* Catch pipe close on other end by checking if a read()
    448466                   call would not block by calling select(). */
Note: See TracChangeset for help on using the changeset viewer.