=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth-bsdauth.c,v retrieving revision 1.5 retrieving revision 1.5.10.1 diff -u -r1.5 -r1.5.10.1 --- src/usr.bin/ssh/auth-bsdauth.c 2002/06/30 21:59:45 1.5 +++ src/usr.bin/ssh/auth-bsdauth.c 2005/03/10 16:28:27 1.5.10.1 @@ -22,7 +22,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "includes.h" -RCSID("$OpenBSD: auth-bsdauth.c,v 1.5 2002/06/30 21:59:45 deraadt Exp $"); +RCSID("$OpenBSD: auth-bsdauth.c,v 1.5.10.1 2005/03/10 16:28:27 brad Exp $"); #ifdef BSD_AUTH #include "xmalloc.h" @@ -82,6 +82,9 @@ { Authctxt *authctxt = ctx; int authok; + + if (!authctxt->valid) + return -1; if (authctxt->as == 0) error("bsdauth_respond: no bsd auth session");