Ignore:
Timestamp:
Jul 1, 2011, 9:17:44 AM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update vendor to version 3.5.7

Location:
vendor/current/source3/client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/client/client.c

    r414 r591  
    44214421 again:
    44224422
    4423         if (cli->fd == -1)
     4423        if (cli->fd < 0 || cli->fd >= FD_SETSIZE) {
     4424                errno = EBADF;
    44244425                return;
     4426        }
    44254427
    44264428        FD_ZERO(&fds);
  • vendor/current/source3/client/dnsbrowse.c

    r414 r591  
    8080                if (fdset != NULL) {
    8181                        TALLOC_FREE(fdset);
     82                }
     83
     84                if (mdnsfd < 0 || mdnsfd >= FD_SETSIZE) {
     85                        errno = EBADF;
     86                        break;
    8287                }
    8388
     
    182187                }
    183188
     189                if (mdnsfd < 0 || mdnsfd >= FD_SETSIZE) {
     190                        errno = EBADF;
     191                        TALLOC_FREE(ctx);
     192                        return 1;
     193                }
     194
    184195                fdsetsz = howmany(mdnsfd + 1, NFDBITS) * sizeof(fd_mask);
    185196                fdset = TALLOC_ZERO(ctx, fdsetsz);
Note: See TracChangeset for help on using the changeset viewer.