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

Diff for /src/usr.bin/ssh/atomicio.c between version 1.18 and 1.19

version 1.18, 2006/04/16 00:52:55 version 1.19, 2006/04/16 07:59:00
Line 95 
Line 95 
                                 iovcnt--;                                  iovcnt--;
                         }                          }
                         /* This shouldn't happen... */                          /* This shouldn't happen... */
                         if (rem > iov[0].iov_len || (rem > 0 && iovcnt <= 0)) {                          if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) {
                                 errno = EFAULT;                                  errno = EFAULT;
                                 return 0;                                  return 0;
                         }                          }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19