comparison channel.h @ 652:17962b2a6b8f

- Make sure we don't use channel-specific data after it has been freed with a ChanType->closehandler()
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Dec 2011 05:27:29 +0800
parents cf376c696dfc
children 564e7f87ecc3
comparison
equal deleted inserted replaced
651:a48a1f6ab43e 652:17962b2a6b8f
67 67
68 /* whether close/eof messages have been exchanged */ 68 /* whether close/eof messages have been exchanged */
69 int sent_close, recv_close; 69 int sent_close, recv_close;
70 int recv_eof, sent_eof; 70 int recv_eof, sent_eof;
71 71
72 /* Set after running the ChanType-specific close hander
73 * to ensure we don't run it twice (nor type->checkclose()). */
74 int close_handler_done;
75
72 int initconn; /* used for TCP forwarding, whether the channel has been 76 int initconn; /* used for TCP forwarding, whether the channel has been
73 fully initialised */ 77 fully initialised */
74 78
75 int await_open; /* flag indicating whether we've sent an open request 79 int await_open; /* flag indicating whether we've sent an open request
76 for this channel (and are awaiting a confirmation 80 for this channel (and are awaiting a confirmation