diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-09-19 11:31:34 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-09-19 11:31:34 +0000 |
commit | fa3bef7839bc3953dd269eaed97c60ddd3537067 (patch) | |
tree | 3f5fe14e56f81409b8f0da335f9e06af3bdb959e /usr.bin | |
parent | 7946a0d57b11d3e1aa0781001050eea01e66588d (diff) |
do not call channel_free_all on fatal; ok deraadt
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/channels.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c index a6865404509..376969c1252 100644 --- a/usr.bin/ssh/channels.c +++ b/usr.bin/ssh/channels.c @@ -39,7 +39,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: channels.c,v 1.195 2003/09/16 21:02:40 markus Exp $"); +RCSID("$OpenBSD: channels.c,v 1.196 2003/09/19 11:31:33 markus Exp $"); #include "ssh.h" #include "ssh1.h" @@ -216,7 +216,6 @@ channel_new(char *ctype, int type, int rfd, int wfd, int efd, channels = xmalloc(channels_alloc * sizeof(Channel *)); for (i = 0; i < channels_alloc; i++) channels[i] = NULL; - fatal_add_cleanup((void (*) (void *)) channel_free_all, NULL); } /* Try to find a free slot where to put the new channel. */ for (found = -1, i = 0; i < channels_alloc; i++) |