- djm@cvs.openbsd.org 2013/10/17 22:08:04
[sshd.c] include remote port in bad banner message; bz#2162
This commit is contained in:
parent
1edcbf65eb
commit
4502f88774
|
@ -6,6 +6,9 @@
|
||||||
- jmc@cvs.openbsd.org 2013/10/17 07:35:48
|
- jmc@cvs.openbsd.org 2013/10/17 07:35:48
|
||||||
[sftp.1 sftp.c]
|
[sftp.1 sftp.c]
|
||||||
tweak previous;
|
tweak previous;
|
||||||
|
- djm@cvs.openbsd.org 2013/10/17 22:08:04
|
||||||
|
[sshd.c]
|
||||||
|
include remote port in bad banner message; bz#2162
|
||||||
|
|
||||||
20131017
|
20131017
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
|
|
7
sshd.c
7
sshd.c
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: sshd.c,v 1.407 2013/10/10 01:43:03 djm Exp $ */
|
/* $OpenBSD: sshd.c,v 1.408 2013/10/17 22:08:04 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
|
@ -483,8 +483,9 @@ sshd_exchange_identification(int sock_in, int sock_out)
|
||||||
(void) atomicio(vwrite, sock_out, s, strlen(s));
|
(void) atomicio(vwrite, sock_out, s, strlen(s));
|
||||||
close(sock_in);
|
close(sock_in);
|
||||||
close(sock_out);
|
close(sock_out);
|
||||||
logit("Bad protocol version identification '%.100s' from %s",
|
logit("Bad protocol version identification '%.100s' "
|
||||||
client_version_string, get_remote_ipaddr());
|
"from %s port %d", client_version_string,
|
||||||
|
get_remote_ipaddr(), get_remote_port());
|
||||||
cleanup_exit(255);
|
cleanup_exit(255);
|
||||||
}
|
}
|
||||||
debug("Client protocol version %d.%d; client software version %.100s",
|
debug("Client protocol version %d.%d; client software version %.100s",
|
||||||
|
|
Loading…
Reference in New Issue