- (bal) OpenBSD CVS Update
- markus@cvs.openbsd.org 2000/12/29 22:19:13 [channels.c] missing xfree; from vaughan99@yahoo.com
This commit is contained in:
parent
f5410351c3
commit
6c3ae2ba05
|
@ -3,6 +3,9 @@
|
||||||
- markus@cvs.openbsd.org 2000/12/28 18:58:30
|
- markus@cvs.openbsd.org 2000/12/28 18:58:30
|
||||||
[ssh-keygen.c]
|
[ssh-keygen.c]
|
||||||
enable 'ssh-keygen -l -f ~/.ssh/{authorized_keys,known_hosts}{,2}
|
enable 'ssh-keygen -l -f ~/.ssh/{authorized_keys,known_hosts}{,2}
|
||||||
|
- markus@cvs.openbsd.org 2000/12/29 22:19:13
|
||||||
|
[channels.c]
|
||||||
|
missing xfree; from vaughan99@yahoo.com
|
||||||
- (bal) Resynced CVS ID with OpenBSD for channel.c and uidswap.c
|
- (bal) Resynced CVS ID with OpenBSD for channel.c and uidswap.c
|
||||||
- (bal) if no MAXHOSTNAMELEN is defined. Default to 64 character defination.
|
- (bal) if no MAXHOSTNAMELEN is defined. Default to 64 character defination.
|
||||||
Suggested by Christian Kurz <shorty@debain.org>
|
Suggested by Christian Kurz <shorty@debain.org>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: channels.c,v 1.78 2000/12/29 11:05:55 markus Exp $");
|
RCSID("$OpenBSD: channels.c,v 1.79 2000/12/29 22:19:13 markus Exp $");
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
|
@ -307,9 +307,13 @@ void
|
||||||
channel_free(int id)
|
channel_free(int id)
|
||||||
{
|
{
|
||||||
Channel *c = channel_lookup(id);
|
Channel *c = channel_lookup(id);
|
||||||
|
char *s = channel_open_message();
|
||||||
|
|
||||||
if (c == NULL)
|
if (c == NULL)
|
||||||
packet_disconnect("channel free: bad local channel %d", id);
|
packet_disconnect("channel free: bad local channel %d", id);
|
||||||
debug("channel_free: channel %d: status: %s", id, channel_open_message());
|
debug("channel_free: channel %d: status: %s", id, s);
|
||||||
|
xfree(s);
|
||||||
|
|
||||||
if (c->dettach_user != NULL) {
|
if (c->dettach_user != NULL) {
|
||||||
debug("channel_free: channel %d: dettaching channel user", id);
|
debug("channel_free: channel %d: dettaching channel user", id);
|
||||||
c->dettach_user(c->self, NULL);
|
c->dettach_user(c->self, NULL);
|
||||||
|
|
Loading…
Reference in New Issue