[PATCH 1/2] su: zero out cryptpass

From: Jakob Kramer <jakob.kramer_AT_gmx.de>
Date: Wed, 30 Apr 2014 00:10:40 +0200

---
 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
_AT_@ -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
--------------040206020308020706060409--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 30 2014 - 00:36:06 CEST