diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-06-13 04:55:46 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-06-13 04:55:46 +1000 |
commit | 84c56f536ca664f79172d595e088fce6aa84be21 (patch) | |
tree | ed9f037d4935c1bb0a59c8a0dd3e815883a07fa2 /channels.h | |
parent | 4b3b9773ec9d5e0de31a1a8e113488497c7113dc (diff) |
- djm@cvs.openbsd.org 2008/06/12 15:19:17
[clientloop.h channels.h clientloop.c channels.c mux.c]
The multiplexing escape char handler commit last night introduced a
small memory leak per session; plug it.
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels.h b/channels.h index 450321d43..ec8ea1c40 100644 --- a/channels.h +++ b/channels.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: channels.h,v 1.94 2008/06/12 03:40:52 djm Exp $ */ | 1 | /* $OpenBSD: channels.h,v 1.95 2008/06/12 15:19:17 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -62,6 +62,7 @@ typedef struct Channel Channel; | |||
62 | 62 | ||
63 | typedef void channel_callback_fn(int, void *); | 63 | typedef void channel_callback_fn(int, void *); |
64 | typedef int channel_infilter_fn(struct Channel *, char *, int); | 64 | typedef int channel_infilter_fn(struct Channel *, char *, int); |
65 | typedef void channel_filter_cleanup_fn(int, void *); | ||
65 | typedef u_char *channel_outfilter_fn(struct Channel *, u_char **, u_int *); | 66 | typedef u_char *channel_outfilter_fn(struct Channel *, u_char **, u_int *); |
66 | 67 | ||
67 | /* Channel success/failure callbacks */ | 68 | /* Channel success/failure callbacks */ |
@@ -132,6 +133,7 @@ struct Channel { | |||
132 | channel_infilter_fn *input_filter; | 133 | channel_infilter_fn *input_filter; |
133 | channel_outfilter_fn *output_filter; | 134 | channel_outfilter_fn *output_filter; |
134 | void *filter_ctx; | 135 | void *filter_ctx; |
136 | channel_filter_cleanup_fn *filter_cleanup; | ||
135 | 137 | ||
136 | /* keep boundaries */ | 138 | /* keep boundaries */ |
137 | int datagram; | 139 | int datagram; |
@@ -196,7 +198,7 @@ void channel_request_start(int, char *, int); | |||
196 | void channel_register_cleanup(int, channel_callback_fn *, int); | 198 | void channel_register_cleanup(int, channel_callback_fn *, int); |
197 | void channel_register_open_confirm(int, channel_callback_fn *, void *); | 199 | void channel_register_open_confirm(int, channel_callback_fn *, void *); |
198 | void channel_register_filter(int, channel_infilter_fn *, | 200 | void channel_register_filter(int, channel_infilter_fn *, |
199 | channel_outfilter_fn *, void *); | 201 | channel_outfilter_fn *, channel_filter_cleanup_fn *, void *); |
200 | void channel_register_status_confirm(int, channel_confirm_cb *, | 202 | void channel_register_status_confirm(int, channel_confirm_cb *, |
201 | channel_confirm_abandon_cb *, void *); | 203 | channel_confirm_abandon_cb *, void *); |
202 | void channel_cancel_cleanup(int); | 204 | void channel_cancel_cleanup(int); |