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)

Location:
branches/samba-3.3.x/source/client
Files:
2 edited

Legend:

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

    r221 r578  
    43804380 again:
    43814381
    4382         if (cli->fd == -1)
     4382        if (cli->fd < 0 || cli->fd >= FD_SETSIZE) {
     4383                errno = EBADF;
    43834384                return;
     4385        }
    43844386
    43854387        FD_ZERO(&fds);
  • branches/samba-3.3.x/source/client/dnsbrowse.c

    r206 r578  
    8080                if (fdset != NULL) {
    8181                        TALLOC_FREE(fdset);
     82                }
     83
     84                if (mdnsfd < 0 || mdnsfd >= FD_SETSIZE) {
     85                        errno = EBADF;
     86                        break;
    8287                }
    8388
     
    184189                fdsetsz = howmany(mdnsfd + 1, NFDBITS) * sizeof(fd_mask);
    185190                fdset = TALLOC_ZERO(ctx, fdsetsz);
     191
     192                if (mdnsfd < 0 || mdnsfd >= FD_SETSIZE) {
     193                        errno = EBADF;
     194                        TALLOC_FREE(ctx);
     195                        return 1;
     196                }
     197
    186198                FD_SET(mdnsfd, fdset);
    187199
Note: See TracChangeset for help on using the changeset viewer.