summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sshd.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 381b2a961..f39031200 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,11 @@
6 - markus@cvs.openbsd.org 2013/11/13 13:48:20 6 - markus@cvs.openbsd.org 2013/11/13 13:48:20
7 [ssh-pkcs11.c] 7 [ssh-pkcs11.c]
8 add missing braces found by pedro 8 add missing braces found by pedro
9 - djm@cvs.openbsd.org 2013/11/20 02:19:01
10 [sshd.c]
11 delay closure of in/out fds until after "Bad protocol version
12 identification..." message, as get_remote_ipaddr/get_remote_port
13 require them open.
9 14
1020131110 1520131110
11 - (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by 16 - (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by
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",