summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2009-01-28 16:29:49 +1100
committerDamien Miller <djm@mindrot.org>2009-01-28 16:29:49 +1100
commita1c1b6c86d506c10daac0161f7fc56368cc6ef6e (patch)
tree0b8eb2b4afc01c9fb592fb8e2a7594b21448cbf2 /channels.h
parent5bc6aae3dbeda2e6b23361238b16fbadbfcd2ce5 (diff)
downloadopenssh-git-a1c1b6c86d506c10daac0161f7fc56368cc6ef6e.tar.gz
- 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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/channels.h b/channels.h
index 108b3606..19fee769 100644
--- a/channels.h
+++ b/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;
@@ -105,7 +103,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 */