summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/session.c b/session.c
index af5c836bc..70d3e3278 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.67 2001/03/23 14:28:32 markus Exp $"); 36RCSID("$OpenBSD: session.c,v 1.68 2001/03/25 00:01:34 djm Exp $");
37 37
38#include "ssh.h" 38#include "ssh.h"
39#include "ssh1.h" 39#include "ssh1.h"
@@ -1510,20 +1510,11 @@ session_new(void)
1510 for(i = 0; i < MAX_SESSIONS; i++) { 1510 for(i = 0; i < MAX_SESSIONS; i++) {
1511 Session *s = &sessions[i]; 1511 Session *s = &sessions[i];
1512 if (! s->used) { 1512 if (! s->used) {
1513 s->pid = 0; 1513 memset(s, 0, sizeof(*s));
1514 s->is_subsystem = 0;
1515 s->chanid = -1; 1514 s->chanid = -1;
1516 s->ptyfd = -1; 1515 s->ptyfd = -1;
1517 s->ttyfd = -1; 1516 s->ttyfd = -1;
1518 s->tty[0] = '\0';
1519 s->term = NULL;
1520 s->pw = NULL;
1521 s->display = NULL;
1522 s->screen = 0;
1523 s->auth_data = NULL;
1524 s->auth_proto = NULL;
1525 s->used = 1; 1517 s->used = 1;
1526 s->pw = NULL;
1527 debug("session_new: session %d", i); 1518 debug("session_new: session %d", i);
1528 return s; 1519 return s;
1529 } 1520 }