diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-01-20 10:55:46 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-01-20 10:55:46 +1100 |
commit | 172a5e8cb8028bd6dc8596ea5f08f118d0d61799 (patch) | |
tree | e87050a46546775d08301569fa786b93d4205a30 /session.c | |
parent | 24c710e498a93c15c3071e833a3e357576ee6d2c (diff) |
- markus@cvs.openbsd.org 2004/12/23 17:35:48
[session.c]
check for NULL; from mpech
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "includes.h" | 35 | #include "includes.h" |
36 | RCSID("$OpenBSD: session.c,v 1.180 2004/07/28 09:40:29 markus Exp $"); | 36 | RCSID("$OpenBSD: session.c,v 1.181 2004/12/23 17:35:48 markus Exp $"); |
37 | 37 | ||
38 | #include "ssh.h" | 38 | #include "ssh.h" |
39 | #include "ssh1.h" | 39 | #include "ssh1.h" |
@@ -245,6 +245,10 @@ do_authenticated1(Authctxt *authctxt) | |||
245 | u_int proto_len, data_len, dlen, compression_level = 0; | 245 | u_int proto_len, data_len, dlen, compression_level = 0; |
246 | 246 | ||
247 | s = session_new(); | 247 | s = session_new(); |
248 | if (s == NULL) { | ||
249 | error("no more sessions"); | ||
250 | return; | ||
251 | } | ||
248 | s->authctxt = authctxt; | 252 | s->authctxt = authctxt; |
249 | s->pw = authctxt->pw; | 253 | s->pw = authctxt->pw; |
250 | 254 | ||