summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshd.c b/sshd.c
index 8a62fc1a6..a53deab3b 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.410 2013/11/02 21:59:15 markus Exp $ */ 1/* $OpenBSD: sshd.c,v 1.411 2013/11/20 02:19:01 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -480,11 +480,11 @@ sshd_exchange_identification(int sock_in, int sock_out)
480 &remote_major, &remote_minor, remote_version) != 3) { 480 &remote_major, &remote_minor, remote_version) != 3) {
481 s = "Protocol mismatch.\n"; 481 s = "Protocol mismatch.\n";
482 (void) atomicio(vwrite, sock_out, s, strlen(s)); 482 (void) atomicio(vwrite, sock_out, s, strlen(s));
483 close(sock_in);
484 close(sock_out);
485 logit("Bad protocol version identification '%.100s' " 483 logit("Bad protocol version identification '%.100s' "
486 "from %s port %d", client_version_string, 484 "from %s port %d", client_version_string,
487 get_remote_ipaddr(), get_remote_port()); 485 get_remote_ipaddr(), get_remote_port());
486 close(sock_in);
487 close(sock_out);
488 cleanup_exit(255); 488 cleanup_exit(255);
489 } 489 }
490 debug("Client protocol version %d.%d; client software version %.100s", 490 debug("Client protocol version %d.%d; client software version %.100s",