summaryrefslogtreecommitdiffhomepage
path: root/channel.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2011-12-04 05:27:29 +0800
committerMatt Johnston <matt@ucc.asn.au>2011-12-04 05:27:29 +0800
commitbaa32218b0df8bd342da9bfe04f7ae678f2664ff (patch)
tree931403ab67a81374a4a4df9a59999cac999e7184 /channel.h
parentfd0b05943df886d71a20219e9ff6baa900b0eb8f (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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/channel.h b/channel.h
index 5c63226..d9e2894 100644
--- a/channel.h
+++ b/channel.h
@@ -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 */