summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2005-07-06 09:45:26 +1000
committerDamien Miller <djm@mindrot.org>2005-07-06 09:45:26 +1000
commitf92c0794ec9162f4e0d5291fe58e4fcb5a00f6d3 (patch)
tree7b440478910b9ab407b0d87f07b258aadd20abc5 /channels.c
parentfd94fbaf563d2d9a0c512e59085fe91d7e693576 (diff)
- markus@cvs.openbsd.org 2005/07/04 14:04:11
[channels.c] don't forget to set x11_saved_display
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index 14ff166ae..a7c69a066 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.219 2005/07/04 00:58:42 djm Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.220 2005/07/04 14:04:11 markus Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -2964,7 +2964,9 @@ x11_request_forwarding_with_spoofing(int client_session_id, const char *disp,
2964 const char *cp; 2964 const char *cp;
2965 u_int32_t rnd = 0; 2965 u_int32_t rnd = 0;
2966 2966
2967 if (x11_saved_display && strcmp(disp, x11_saved_display) != 0) { 2967 if (x11_saved_display == NULL)
2968 x11_saved_display = xstrdup(disp);
2969 else if (strcmp(disp, x11_saved_display) != 0) {
2968 error("x11_request_forwarding_with_spoofing: different " 2970 error("x11_request_forwarding_with_spoofing: different "
2969 "$DISPLAY already forwarded"); 2971 "$DISPLAY already forwarded");
2970 return; 2972 return;