diff options
author | Damien Miller <djm@mindrot.org> | 2003-11-17 11:13:40 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-11-17 11:13:40 +0100 |
commit | 3e3b5145e59c78cbde0f31f59a9267867b8eea2f (patch) | |
tree | 6725a1cc2cd54237952d89e4811e1cb82cc46a5d /session.c | |
parent | - jakob@cvs.openbsd.org 2003/11/03 09:37:32 (diff) | |
download | openssh-3e3b5145e59c78cbde0f31f59a9267867b8eea2f.tar.xz openssh-3e3b5145e59c78cbde0f31f59a9267867b8eea2f.zip |
- djm@cvs.openbsd.org 2003/11/04 08:54:09
[auth1.c auth2.c auth2-pubkey.c auth.h auth-krb5.c auth-passwd.c]
[auth-rhosts.c auth-rh-rsa.c auth-rsa.c monitor.c serverloop.c]
[session.c]
standardise arguments to auth methods - they should all take authctxt.
check authctxt->valid rather then pw != NULL; ok markus@
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,7 +33,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: session.c,v 1.166 2003/10/14 19:54:39 markus Exp $"); +RCSID("$OpenBSD: session.c,v 1.167 2003/11/04 08:54:09 djm Exp $"); #include "ssh.h" #include "ssh1.h" @@ -1532,7 +1532,7 @@ session_open(Authctxt *authctxt, int chanid) } s->authctxt = authctxt; s->pw = authctxt->pw; - if (s->pw == NULL) + if (s->pw == NULL || !authctxt->valid) fatal("no user for session %d", s->self); debug("session_open: session %d: link with channel %d", s->self, chanid); s->chanid = chanid; |