diff options
author | Matt Johnston <matt@ucc.asn.au> | 2011-12-04 05:27:29 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2011-12-04 05:27:29 +0800 |
commit | baa32218b0df8bd342da9bfe04f7ae678f2664ff (patch) | |
tree | 931403ab67a81374a4a4df9a59999cac999e7184 /channel.h | |
parent | fd0b05943df886d71a20219e9ff6baa900b0eb8f (diff) |
- Make sure we don't use channel-specific data after it has been freed
with a ChanType->closehandler()
Diffstat (limited to 'channel.h')
-rw-r--r-- | channel.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |