diff options
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/channels.c b/channels.c index 3f6db60c6..440043b9c 100644 --- a/channels.c +++ b/channels.c | |||
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: channels.c,v 1.214 2005/03/14 11:46:56 markus Exp $"); | 42 | RCSID("$OpenBSD: channels.c,v 1.215 2005/06/16 03:38:36 djm Exp $"); |
43 | 43 | ||
44 | #include "ssh.h" | 44 | #include "ssh.h" |
45 | #include "ssh1.h" | 45 | #include "ssh1.h" |
@@ -2952,7 +2952,7 @@ deny_input_open(int type, u_int32_t seq, void *ctxt) | |||
2952 | * This should be called in the client only. | 2952 | * This should be called in the client only. |
2953 | */ | 2953 | */ |
2954 | void | 2954 | void |
2955 | x11_request_forwarding_with_spoofing(int client_session_id, | 2955 | x11_request_forwarding_with_spoofing(int client_session_id, const char *disp, |
2956 | const char *proto, const char *data) | 2956 | const char *proto, const char *data) |
2957 | { | 2957 | { |
2958 | u_int data_len = (u_int) strlen(data) / 2; | 2958 | u_int data_len = (u_int) strlen(data) / 2; |
@@ -2962,9 +2962,9 @@ x11_request_forwarding_with_spoofing(int client_session_id, | |||
2962 | const char *cp; | 2962 | const char *cp; |
2963 | u_int32_t rnd = 0; | 2963 | u_int32_t rnd = 0; |
2964 | 2964 | ||
2965 | cp = getenv("DISPLAY"); | 2965 | cp = disp; |
2966 | if (cp) | 2966 | if (disp) |
2967 | cp = strchr(cp, ':'); | 2967 | cp = strchr(disp, ':'); |
2968 | if (cp) | 2968 | if (cp) |
2969 | cp = strchr(cp, '.'); | 2969 | cp = strchr(cp, '.'); |
2970 | if (cp) | 2970 | if (cp) |