diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2009-01-22 09:46:02 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2009-01-22 09:46:02 +0000 |
commit | 60415b6969b38f9a07e4c3ac2a384bc26110199f (patch) | |
tree | ae8ba0933239dfe2bb1dde14352b5527120c9896 /usr.bin/ssh/channels.h | |
parent | 7e52a2ecb17e4a58b9d5dc2cd1fa7e09341d10f2 (diff) |
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 'usr.bin/ssh/channels.h')
-rw-r--r-- | usr.bin/ssh/channels.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/ssh/channels.h b/usr.bin/ssh/channels.h index d82e44f3f87..185b477b014 100644 --- a/usr.bin/ssh/channels.h +++ b/usr.bin/ssh/channels.h @@ -1,4 +1,4 @@ -/* $OpenBSD: channels.h,v 1.96 2008/06/15 20:06:26 djm Exp $ */ +/* $OpenBSD: channels.h,v 1.97 2009/01/22 09:46:01 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -55,8 +55,6 @@ #define SSH_CHANNEL_ZOMBIE 14 /* Almost dead. */ #define SSH_CHANNEL_MAX_TYPE 15 -#define SSH_CHANNEL_PATH_LEN 256 - struct Channel; typedef struct Channel Channel; @@ -104,7 +102,7 @@ struct Channel { Buffer output; /* data received over encrypted connection for * send on socket */ Buffer extended; - char path[SSH_CHANNEL_PATH_LEN]; + char *path; /* path for unix domain sockets, or host name for forwards */ int listening_port; /* port being listened for forwards */ int host_port; /* remote port to connect for forwards */ |