[BACK]Return to channels.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/channels.c between version 1.415 and 1.416

version 1.415, 2022/03/30 21:10:25 version 1.416, 2022/04/11 22:52:08
Line 2559 
Line 2559 
         u_int i, oalloc, p, npfd = npfd_reserved;          u_int i, oalloc, p, npfd = npfd_reserved;
   
         channel_before_prepare_io(ssh); /* might create a new channel */          channel_before_prepare_io(ssh); /* might create a new channel */
           /* clear out I/O flags from last poll */
           for (i = 0; i < sc->channels_alloc; i++) {
                   if (sc->channels[i] == NULL)
                           continue;
                   sc->channels[i]->io_want = sc->channels[i]->io_ready = 0;
           }
         /* Allocate 4x pollfd for each channel (rfd, wfd, efd, sock) */          /* Allocate 4x pollfd for each channel (rfd, wfd, efd, sock) */
         if (sc->channels_alloc >= (INT_MAX / 4) - npfd_reserved)          if (sc->channels_alloc >= (INT_MAX / 4) - npfd_reserved)
                 fatal_f("too many channels"); /* shouldn't happen */                  fatal_f("too many channels"); /* shouldn't happen */

Legend:
Removed from v.1.415  
changed lines
  Added in v.1.416