=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/nchan.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- src/usr.bin/ssh/nchan.c 2000/04/03 07:07:15 1.13 +++ src/usr.bin/ssh/nchan.c 2000/04/14 10:30:32 1.14 @@ -28,7 +28,7 @@ */ #include "includes.h" -RCSID("$Id: nchan.c,v 1.13 2000/04/03 07:07:15 markus Exp $"); +RCSID("$Id: nchan.c,v 1.14 2000/04/14 10:30:32 markus Exp $"); #include "ssh.h" @@ -389,11 +389,11 @@ if (!(c->flags & CHAN_CLOSE_SENT)) { chan_send_close2(c); } - if ((c->flags & CHAN_CLOSE_SENT) && + if ((c->flags & CHAN_CLOSE_SENT) && (c->flags & CHAN_CLOSE_RCVD)) { debug("channel %d: full closed2", c->self); channel_free(c->self); - } + } } }