>From 734e8e4471c808eee52021d10497429ea3fc5269 Mon Sep 17 00:00:00 2001
From: Jakob Kramer <jakob.kra...@gmx.de>
Date: Wed, 30 Apr 2014 00:10:40 +0200
Subject: [PATCH 1/2] su: zero out cryptpass

---
 su.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/su.c b/su.c
index 9beb7d0..16ce6c2 100644
--- a/su.c
+++ b/su.c
@@ -88,6 +88,9 @@ main(int argc, char *argv[])
 
 		if (strcmp(cryptpass, spw->sp_pwdp) != 0)
 			eprintf(randreply());
+
+		for (i = 0; cryptpass[i]; i++)
+			cryptpass[i] = '\0';
 	}
 
 	errno = 0;
-- 
1.8.5.1

Reply via email to