- Make sure we don't use channel-specific data after it has been freed

with a ChanType->closehandler()
This commit is contained in:
Matt Johnston
2011-12-04 05:27:29 +08:00
parent fd0b05943d
commit baa32218b0
2 changed files with 18 additions and 7 deletions

View File

@@ -69,6 +69,10 @@ struct Channel {
int sent_close, recv_close;
int recv_eof, sent_eof;
/* Set after running the ChanType-specific close hander
* to ensure we don't run it twice (nor type->checkclose()). */
int close_handler_done;
int initconn; /* used for TCP forwarding, whether the channel has been
fully initialised */