Blame SOURCES/openssh-7.4p1-newline-banner.patch
|
|
b58e57 |
diff -up openssh-7.4p1/sshd.c.newline-banner openssh-7.4p1/sshd.c
|
|
|
b58e57 |
--- openssh-7.4p1/sshd.c.newline-banner 2017-02-17 14:00:47.237168594 +0100
|
|
|
b58e57 |
+++ openssh-7.4p1/sshd.c 2017-02-17 14:02:10.933096707 +0100
|
|
|
b58e57 |
@@ -369,15 +369,15 @@ sshd_exchange_identification(struct ssh
|
|
|
b58e57 |
{
|
|
|
b58e57 |
u_int i;
|
|
|
b58e57 |
int remote_major, remote_minor;
|
|
|
b58e57 |
- char *s, *newline = "\n";
|
|
|
b58e57 |
+ char *s;
|
|
|
b58e57 |
char buf[256]; /* Must not be larger than remote_version. */
|
|
|
b58e57 |
char remote_version[256]; /* Must be at least as big as buf. */
|
|
|
b58e57 |
|
|
|
b58e57 |
- xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s",
|
|
|
b58e57 |
+ xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s\r\n",
|
|
|
b58e57 |
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2,
|
|
|
b58e57 |
(options.show_patchlevel == 1) ? SSH_VENDOR_PATCHLEVEL : SSH_VERSION,
|
|
|
b58e57 |
*options.version_addendum == '\0' ? "" : " ",
|
|
|
b58e57 |
- options.version_addendum, newline);
|
|
|
b58e57 |
+ options.version_addendum);
|
|
|
b58e57 |
|
|
|
b58e57 |
/* Send our protocol version identification. */
|
|
|
b58e57 |
if (atomicio(vwrite, sock_out, server_version_string,
|