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