Merge remote-tracking branch 'openssh/master' into HEAD
This commit is contained in:
commit
23070811f8
8
sshd.c
8
sshd.c
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: sshd.c,v 1.481 2017/02/03 02:56:00 dtucker Exp $ */
|
/* $OpenBSD: sshd.c,v 1.482 2017/02/06 09:22:51 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
|
||||||
|
@ -375,14 +375,14 @@ sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out)
|
||||||
{
|
{
|
||||||
u_int i;
|
u_int i;
|
||||||
int remote_major, remote_minor;
|
int remote_major, remote_minor;
|
||||||
char *s, *newline = "\n";
|
char *s;
|
||||||
char buf[256]; /* Must not be larger than remote_version. */
|
char buf[256]; /* Must not be larger than remote_version. */
|
||||||
char remote_version[256]; /* Must be at least as big as buf. */
|
char remote_version[256]; /* Must be at least as big as buf. */
|
||||||
|
|
||||||
xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s",
|
xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s\r\n",
|
||||||
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION,
|
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION,
|
||||||
*options.version_addendum == '\0' ? "" : " ",
|
*options.version_addendum == '\0' ? "" : " ",
|
||||||
options.version_addendum, newline);
|
options.version_addendum);
|
||||||
|
|
||||||
/* Send our protocol version identification. */
|
/* Send our protocol version identification. */
|
||||||
if (atomicio(vwrite, sock_out, server_version_string,
|
if (atomicio(vwrite, sock_out, server_version_string,
|
||||||
|
|
Loading…
Reference in New Issue