~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/md/windows/w32poll.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-06-16 11:28:24 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616112824-cg6qzhvt63lx7bub
Tags: 4.7.5-0ubuntu1
* New upstream version: 4.7.5 (LP: #387745)

* adjust patches to changed upstream code base
  - update debian/patches/99_configure.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
 
248
248
    if (0 != ready) return ready;  /* no need to block */
249
249
 
 
250
    /*
 
251
     * FD_SET does nothing if the fd_set's internal fd_array is full.  If
 
252
     * nrd, nwt, or nex is greater than FD_SETSIZE, we know FD_SET must
 
253
     * have failed to insert an osfd into the corresponding fd_set, and
 
254
     * therefore we should fail.
 
255
     */
250
256
    if ((nrd > FD_SETSIZE) || (nwt > FD_SETSIZE) || (nex > FD_SETSIZE)) {
251
257
        PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0);
252
258
        return -1;