summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--session.c13
2 files changed, 7 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 20e4efb47..b5f37e4af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
2 - Attempt sync with sshlogin.c w/ OpenBSD (mainly CVS ID) 2 - Attempt sync with sshlogin.c w/ OpenBSD (mainly CVS ID)
3 - Fix pointer issues in waitpid() and wait() replaces. Patch by Lutz 3 - Fix pointer issues in waitpid() and wait() replaces. Patch by Lutz
4 Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE> 4 Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
5 - OpenBSD CVS Sync
6 - djm@cvs.openbsd.org 2001/03/25 00:01:34
7 [session.c]
8 shorten; ok markus@
5 9
620010324 1020010324
7 - Fixed permissions ssh-keyscan. Thanks to Christopher Linn <celinn@mtu.edu>. 11 - Fixed permissions ssh-keyscan. Thanks to Christopher Linn <celinn@mtu.edu>.
@@ -4710,4 +4714,4 @@
4710 - Wrote replacements for strlcpy and mkdtemp 4714 - Wrote replacements for strlcpy and mkdtemp
4711 - Released 1.0pre1 4715 - Released 1.0pre1
4712 4716
4713$Id: ChangeLog,v 1.1017 2001/03/26 05:35:33 mouring Exp $ 4717$Id: ChangeLog,v 1.1018 2001/03/26 05:38:25 mouring Exp $
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 }