summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2005-07-17 17:02:09 +1000
committerDamien Miller <djm@mindrot.org>2005-07-17 17:02:09 +1000
commit46d38de48b1018c74040d2399bafbedf50247529 (patch)
tree48255e4d9fc4bbd22615a35f4f5d4537873cba68 /sshconnect.c
parent4f1adad4f65d63645689d2d947876848b0813390 (diff)
- djm@cvs.openbsd.org 2005/07/16 01:35:24
[auth1.c channels.c cipher.c clientloop.c kex.c session.c ssh.c] [sshconnect.c] spacing
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 92f0f3800..84f287145 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect.c,v 1.166 2005/06/17 22:53:47 djm Exp $"); 16RCSID("$OpenBSD: sshconnect.c,v 1.167 2005/07/16 01:35:24 djm Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19 19
@@ -404,7 +404,7 @@ ssh_exchange_identification(void)
404 for (i = 0; i < sizeof(buf) - 1; i++) { 404 for (i = 0; i < sizeof(buf) - 1; i++) {
405 size_t len = atomicio(read, connection_in, &buf[i], 1); 405 size_t len = atomicio(read, connection_in, &buf[i], 1);
406 406
407 if (len != 1 && errno == EPIPE) 407 if (len != 1 && errno == EPIPE)
408 fatal("ssh_exchange_identification: Connection closed by remote host"); 408 fatal("ssh_exchange_identification: Connection closed by remote host");
409 else if (len != 1) 409 else if (len != 1)
410 fatal("ssh_exchange_identification: read: %.100s", strerror(errno)); 410 fatal("ssh_exchange_identification: read: %.100s", strerror(errno));