diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-10-14 20:45:24 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-10-14 20:45:24 +0000 |
commit | f137b54fa051c26e43c7a59e24e6eb8fcbbf89f1 (patch) | |
tree | f9267636b2461d9f505ce150c1d9b2cfe2b0d069 /usr.bin | |
parent | 403ad3ee6286c4cc0d5ac2aa69380310d3914889 (diff) |
Exit on empty "secret password" like skeyinit does.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/skey/skey.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/skey/skey.c b/usr.bin/skey/skey.c index 312a4dc650d..8365d07b5a9 100644 --- a/usr.bin/skey/skey.c +++ b/usr.bin/skey/skey.c @@ -1,4 +1,4 @@ -/* * $OpenBSD: skey.c,v 1.5 1996/09/29 21:28:38 millert Exp $*/ +/* * $OpenBSD: skey.c,v 1.6 1996/10/14 20:45:23 millert Exp $*/ /* * S/KEY v1.1b (skey.c) * @@ -103,8 +103,9 @@ main(argc, argv) (void)fputs("Reminder - Do not use this program while logged in via telnet or rlogin.\n", stderr); (void)fputs("Enter secret password: ", stderr); readpass(passwd, sizeof(passwd)); + if (passwd[0] == '\0') + exit(1); } - rip(passwd); /* Crunch seed and password into starting key */ if (keycrunch(key, seed, passwd) != 0) |