components/openssh/patches/033-superfluous_error.patch
author Tomas Kuthan <tomas.kuthan@oracle.com>
Sat, 17 Oct 2015 13:20:42 -0700
changeset 4977 eef946d5ac8f
permissions -rw-r--r--
21881806 openssh syslogs message when ending a session:mm_request_receive: socket closed

Remove error() accidentally inserted for debugging.

OpenSSH 6.8 regression, already fixed in OpenSSH 6.9:
https://github.com/openssh/openssh-portable/commit/4d24b3b6

Remove this patch when upgrading to OpenSSH 6.9 or higher.

diff -pur old/monitor_wrap.c new/monitor_wrap.c
--- old/monitor_wrap.c
+++ new/monitor_wrap.c
@@ -153,10 +153,8 @@ mm_request_receive(int sock, Buffer *m)
 	debug3("%s entering", __func__);
 
 	if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) {
-		if (errno == EPIPE) {
-			error("%s: socket closed", __func__);
+		if (errno == EPIPE)
 			cleanup_exit(255);
-		}
 		fatal("%s: read: %s", __func__, strerror(errno));
 	}
 	msg_len = get_u32(buf);