=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth-bsdauth.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- src/usr.bin/ssh/auth-bsdauth.c 2002/06/30 21:59:45 1.5 +++ src/usr.bin/ssh/auth-bsdauth.c 2005/01/19 13:11:47 1.6 @@ -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.6 2005/01/19 13:11:47 dtucker 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");