rutwa189 / rpms / openssh

Forked from rpms/openssh a year ago
Clone

Blame SOURCES/openssh-7.4p1-newline-banner.patch

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