=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/login/login.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- src/usr.bin/login/login.c 2000/09/15 07:13:48 1.34 +++ src/usr.bin/login/login.c 2000/10/14 20:33:13 1.35 @@ -1,4 +1,4 @@ -/* $OpenBSD: login.c,v 1.34 2000/09/15 07:13:48 deraadt Exp $ */ +/* $OpenBSD: login.c,v 1.35 2000/10/14 20:33:13 miod Exp $ */ /* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */ /*- @@ -44,7 +44,7 @@ #if 0 static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; #endif -static char rcsid[] = "$OpenBSD: login.c,v 1.34 2000/09/15 07:13:48 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: login.c,v 1.35 2000/10/14 20:33:13 miod Exp $"; #endif /* not lint */ /* @@ -224,6 +224,7 @@ for (cnt = 0;; ask = 1) { #if defined(KERBEROS) || defined(KERBEROS5) kdestroy(); + authok = 0; #endif if (ask) { fflag = 0; @@ -293,6 +294,9 @@ } else if (pwd->pw_passwd[0] == '\0') { /* pretend password okay */ rval = 0; +#if defined(KERBEROS) || defined(KERBEROS5) + authok = 1; +#endif goto ttycheck; } }