- djm@cvs.openbsd.org 2001/03/25 00:01:34
[session.c] shorten; ok markus@
This commit is contained in:
parent
9531825dd0
commit
6029432ec5
|
@ -2,6 +2,10 @@
|
||||||
- Attempt sync with sshlogin.c w/ OpenBSD (mainly CVS ID)
|
- Attempt sync with sshlogin.c w/ OpenBSD (mainly CVS ID)
|
||||||
- Fix pointer issues in waitpid() and wait() replaces. Patch by Lutz
|
- Fix pointer issues in waitpid() and wait() replaces. Patch by Lutz
|
||||||
Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
|
Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
|
||||||
|
- OpenBSD CVS Sync
|
||||||
|
- djm@cvs.openbsd.org 2001/03/25 00:01:34
|
||||||
|
[session.c]
|
||||||
|
shorten; ok markus@
|
||||||
|
|
||||||
20010324
|
20010324
|
||||||
- Fixed permissions ssh-keyscan. Thanks to Christopher Linn <celinn@mtu.edu>.
|
- Fixed permissions ssh-keyscan. Thanks to Christopher Linn <celinn@mtu.edu>.
|
||||||
|
@ -4710,4 +4714,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1017 2001/03/26 05:35:33 mouring Exp $
|
$Id: ChangeLog,v 1.1018 2001/03/26 05:38:25 mouring Exp $
|
||||||
|
|
13
session.c
13
session.c
|
@ -33,7 +33,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: session.c,v 1.67 2001/03/23 14:28:32 markus Exp $");
|
RCSID("$OpenBSD: session.c,v 1.68 2001/03/25 00:01:34 djm Exp $");
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "ssh1.h"
|
#include "ssh1.h"
|
||||||
|
@ -1510,20 +1510,11 @@ session_new(void)
|
||||||
for(i = 0; i < MAX_SESSIONS; i++) {
|
for(i = 0; i < MAX_SESSIONS; i++) {
|
||||||
Session *s = &sessions[i];
|
Session *s = &sessions[i];
|
||||||
if (! s->used) {
|
if (! s->used) {
|
||||||
s->pid = 0;
|
memset(s, 0, sizeof(*s));
|
||||||
s->is_subsystem = 0;
|
|
||||||
s->chanid = -1;
|
s->chanid = -1;
|
||||||
s->ptyfd = -1;
|
s->ptyfd = -1;
|
||||||
s->ttyfd = -1;
|
s->ttyfd = -1;
|
||||||
s->tty[0] = '\0';
|
|
||||||
s->term = NULL;
|
|
||||||
s->pw = NULL;
|
|
||||||
s->display = NULL;
|
|
||||||
s->screen = 0;
|
|
||||||
s->auth_data = NULL;
|
|
||||||
s->auth_proto = NULL;
|
|
||||||
s->used = 1;
|
s->used = 1;
|
||||||
s->pw = NULL;
|
|
||||||
debug("session_new: session %d", i);
|
debug("session_new: session %d", i);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue