version 1.166, 2005/06/17 22:53:47 |
version 1.167, 2005/07/16 01:35:24 |
|
|
for (i = 0; i < sizeof(buf) - 1; i++) { |
for (i = 0; i < sizeof(buf) - 1; i++) { |
size_t len = atomicio(read, connection_in, &buf[i], 1); |
size_t len = atomicio(read, connection_in, &buf[i], 1); |
|
|
if (len != 1 && errno == EPIPE) |
if (len != 1 && errno == EPIPE) |
fatal("ssh_exchange_identification: Connection closed by remote host"); |
fatal("ssh_exchange_identification: Connection closed by remote host"); |
else if (len != 1) |
else if (len != 1) |
fatal("ssh_exchange_identification: read: %.100s", strerror(errno)); |
fatal("ssh_exchange_identification: read: %.100s", strerror(errno)); |