summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-01-20 10:55:46 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-01-20 10:55:46 +1100
commit172a5e8cb8028bd6dc8596ea5f08f118d0d61799 (patch)
treee87050a46546775d08301569fa786b93d4205a30 /session.c
parent24c710e498a93c15c3071e833a3e357576ee6d2c (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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/session.c b/session.c
index 6844720d4..7f10abf7c 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
33 */ 33 */
34 34
35#include "includes.h" 35#include "includes.h"
36RCSID("$OpenBSD: session.c,v 1.180 2004/07/28 09:40:29 markus Exp $"); 36RCSID("$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