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

Diff for /src/usr.bin/ssh/sshconnect.c between version 1.75 and 1.76

version 1.75, 2000/06/17 19:24:34 version 1.76, 2000/06/17 20:30:10
Line 312 
Line 312 
         /* Read other side\'s version identification. */          /* Read other side\'s version identification. */
         for (;;) {          for (;;) {
                 for (i = 0; i < sizeof(buf) - 1; i++) {                  for (i = 0; i < sizeof(buf) - 1; i++) {
                         int len = read(connection_in, &buf[i], 1);                          int len = atomicio(read, connection_in, &buf[i], 1);
                         if (len < 0)                          if (len < 0)
                                 fatal("ssh_exchange_identification: read: %.100s", strerror(errno));                                  fatal("ssh_exchange_identification: read: %.100s", strerror(errno));
                         if (len != 1)                          if (len != 1)
Line 328 
Line 328 
                         }                          }
                 }                  }
                 buf[sizeof(buf) - 1] = 0;                  buf[sizeof(buf) - 1] = 0;
                 if (strncmp(buf, "SSH-", 4))                  if (strncmp(buf, "SSH-", 4) == 0)
                         break;                          break;
                 debug("ssh_exchange_identification: %s", buf);                  debug("ssh_exchange_identification: %s", buf);
         }          }

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76