summaryrefslogtreecommitdiff
path: root/lib/libskey
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-07-03 01:38:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-07-03 01:38:05 +0000
commit49038f7f03f41d6061ef688653b06ae65c67c388 (patch)
tree826abb8f55fe5d5d04008ae9bab0627b33cc400a /lib/libskey
parent88702b44c42ab1edd4db6e11f142d4c816133d82 (diff)
produce credible seeds for non-existent users.
Diffstat (limited to 'lib/libskey')
-rw-r--r--lib/libskey/skeylogin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libskey/skeylogin.c b/lib/libskey/skeylogin.c
index b6687c64c84..c393a5f8a85 100644
--- a/lib/libskey/skeylogin.c
+++ b/lib/libskey/skeylogin.c
@@ -12,7 +12,7 @@
*
* S/KEY verification check, lookups, and authentication.
*
- * $OpenBSD: skeylogin.c,v 1.25 1998/07/03 01:32:49 angelos Exp $
+ * $OpenBSD: skeylogin.c,v 1.26 1998/07/03 01:38:04 millert Exp $
*/
#include <sys/param.h>
@@ -492,10 +492,10 @@ skey_authenticate(username)
ptr = hash_collapse(up + 4);
- for (i = 0;
+ for (i = 4;
i < SKEY_MAX_SEED_LEN;
i++) {
- p[i] = (ptr % 10) + '0';
+ pbuf[i] = (ptr % 10) + '0';
ptr /= 10;
}