diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-12-23 17:35:49 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-12-23 17:35:49 +0000 |
commit | ad30c7a6ba50e9bef6123e494583ad59e2f5e517 (patch) | |
tree | 1e89d8f9870b244ffdfcfb5d59f46bffe8f6c038 /usr.bin/ssh/session.c | |
parent | 5aa55c8cae3f09157d0018257a671d2676233849 (diff) |
check for NULL; from mpech
Diffstat (limited to 'usr.bin/ssh/session.c')
-rw-r--r-- | usr.bin/ssh/session.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c index c6e624f8dec..00a1e794660 100644 --- a/usr.bin/ssh/session.c +++ b/usr.bin/ssh/session.c @@ -33,7 +33,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: session.c,v 1.180 2004/07/28 09:40:29 markus Exp $"); +RCSID("$OpenBSD: session.c,v 1.181 2004/12/23 17:35:48 markus Exp $"); #include "ssh.h" #include "ssh1.h" @@ -242,6 +242,10 @@ do_authenticated1(Authctxt *authctxt) u_int proto_len, data_len, dlen, compression_level = 0; s = session_new(); + if (s == NULL) { + error("no more sessions"); + return; + } s->authctxt = authctxt; s->pw = authctxt->pw; |