diff options
-rw-r--r-- | sshd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.481 2017/02/03 02:56:00 dtucker Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.482 2017/02/06 09:22:51 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 |
@@ -362,14 +362,14 @@ sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out) | |||
362 | { | 362 | { |
363 | u_int i; | 363 | u_int i; |
364 | int remote_major, remote_minor; | 364 | int remote_major, remote_minor; |
365 | char *s, *newline = "\n"; | 365 | char *s; |
366 | char buf[256]; /* Must not be larger than remote_version. */ | 366 | char buf[256]; /* Must not be larger than remote_version. */ |
367 | char remote_version[256]; /* Must be at least as big as buf. */ | 367 | char remote_version[256]; /* Must be at least as big as buf. */ |
368 | 368 | ||
369 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", | 369 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s\r\n", |
370 | PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION, | 370 | PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION, |
371 | *options.version_addendum == '\0' ? "" : " ", | 371 | *options.version_addendum == '\0' ? "" : " ", |
372 | options.version_addendum, newline); | 372 | options.version_addendum); |
373 | 373 | ||
374 | /* Send our protocol version identification. */ | 374 | /* Send our protocol version identification. */ |
375 | if (atomicio(vwrite, sock_out, server_version_string, | 375 | if (atomicio(vwrite, sock_out, server_version_string, |