vishalmishra434 / rpms / openssh

Forked from rpms/openssh 3 months ago
Clone
Jan F f9ff10
diff -ur openssh/monitor.c openssh-5.8p1/monitor.c
Jan F f9ff10
--- openssh/monitor.c	2011-02-23 14:22:42.007937852 +0100
Jan F f9ff10
+++ openssh-5.8p1/monitor.c	2011-02-23 19:26:01.491710679 +0100
Jan F f9ff10
@@ -106,6 +106,8 @@
Jan F f9ff10
 extern int auth_debug_init;
Jan F f9ff10
 extern Buffer loginmsg;
Jan F f9ff10
 
Jan F f9ff10
+extern void destroy_sensitive_data(int);
Jan F f9ff10
+
Jan F f9ff10
 /* State exported from the child */
Jan F f9ff10
 
Jan F f9ff10
 struct {
Jan F f9ff10
@@ -1651,6 +1653,8 @@
Jan F f9ff10
 		sshpam_cleanup();
Jan F f9ff10
 #endif
Jan F f9ff10
 
Jan F f9ff10
+	destroy_sensitive_data(0);
Jan F f9ff10
+
Jan F f9ff10
 	while (waitpid(pmonitor->m_pid, &status, 0) == -1)
Jan F f9ff10
 		if (errno != EINTR)
Jan F f9ff10
 			exit(1);