aboutsummaryrefslogtreecommitdiffstats
path: root/main/openssh/CVE-2016-10012-3.patch
blob: 423b56a8daeeb5851ac3df69877385d6c334d655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CVE-2016-10012 fix for openssh-7.2_p2
Idea taken from patches:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/monitor.c.diff?r1=1.165&r2=1.166
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/monitor.h.diff?r1=1.19&r2=1.20

===================================================================
--- a/sshd.c
+++ b/sshd.c
@@ -683,8 +683,5 @@
 			ssh_sandbox_parent_preauth(box, pid);
 		monitor_child_preauth(authctxt, pmonitor);
 
-		/* Sync memory */
-		monitor_sync(pmonitor);
-
 		/* Wait for the child's exit status */
 		while (waitpid(pid, &status, 0) < 0) {