summaryrefslogtreecommitdiff
path: root/usr.bin/skeyinit/skeyinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/skeyinit/skeyinit.c')
-rw-r--r--usr.bin/skeyinit/skeyinit.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/skeyinit/skeyinit.c b/usr.bin/skeyinit/skeyinit.c
index 0cbc46ef7a2..a0e49d0faae 100644
--- a/usr.bin/skeyinit/skeyinit.c
+++ b/usr.bin/skeyinit/skeyinit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: skeyinit.c,v 1.36 2002/05/19 02:09:28 millert Exp $ */
+/* $OpenBSD: skeyinit.c,v 1.37 2002/06/06 20:56:02 aaron Exp $ */
/* OpenBSD S/Key (skeyinit.c)
*
@@ -379,6 +379,9 @@ normal_mode(char *username, int n, char *key, char *seed, char *defaultseed)
/* Get user's secret passphrase */
for (i = 0; ; i++) {
+ memset(passwd, 0, sizeof(passwd));
+ memset(passwd2, 0, sizeof(passwd2));
+
if (i > 2)
exit(1);
@@ -399,7 +402,8 @@ normal_mode(char *username, int n, char *key, char *seed, char *defaultseed)
strlen(passwd)) {
(void)fputs("ERROR: Your passphrase must contain more "
"than just lower case letters.\nWhitespace, "
- "numbers, and puctuation are suggested.\n", stderr);
+ "numbers, and punctuation are suggested.\n",
+ stderr);
continue;
} else if (strlen(passwd) > 63) {
(void)fprintf(stderr, "WARNING: Your passphrase is "