diff options
author | Damien Miller <djm@mindrot.org> | 2009-01-28 16:29:49 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2009-01-28 16:29:49 +1100 |
commit | a1c1b6c86d506c10daac0161f7fc56368cc6ef6e (patch) | |
tree | 0b8eb2b4afc01c9fb592fb8e2a7594b21448cbf2 /channels.h | |
parent | 5bc6aae3dbeda2e6b23361238b16fbadbfcd2ce5 (diff) |
- djm@cvs.openbsd.org 2009/01/22 09:46:01
[channels.c channels.h session.c]
make Channel->path an allocated string, saving a few bytes here and
there and fixing bz#1380 in the process; ok markus@
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/channels.h b/channels.h index 108b36068..19fee769c 100644 --- a/channels.h +++ b/channels.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: channels.h,v 1.96 2008/06/15 20:06:26 djm Exp $ */ | 1 | /* $OpenBSD: channels.h,v 1.97 2009/01/22 09:46:01 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -55,8 +55,6 @@ | |||
55 | #define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */ | 55 | #define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */ |
56 | #define SSH_CHANNEL_MAX_TYPE 15 | 56 | #define SSH_CHANNEL_MAX_TYPE 15 |
57 | 57 | ||
58 | #define SSH_CHANNEL_PATH_LEN 256 | ||
59 | |||
60 | struct Channel; | 58 | struct Channel; |
61 | typedef struct Channel Channel; | 59 | typedef struct Channel Channel; |
62 | 60 | ||
@@ -105,7 +103,7 @@ struct Channel { | |||
105 | Buffer output; /* data received over encrypted connection for | 103 | Buffer output; /* data received over encrypted connection for |
106 | * send on socket */ | 104 | * send on socket */ |
107 | Buffer extended; | 105 | Buffer extended; |
108 | char path[SSH_CHANNEL_PATH_LEN]; | 106 | char *path; |
109 | /* path for unix domain sockets, or host name for forwards */ | 107 | /* path for unix domain sockets, or host name for forwards */ |
110 | int listening_port; /* port being listened for forwards */ | 108 | int listening_port; /* port being listened for forwards */ |
111 | int host_port; /* remote port to connect for forwards */ | 109 | int host_port; /* remote port to connect for forwards */ |