]> andersk Git - openssh.git/blobdiff - channels.c
- markus@cvs.openbsd.org 2005/07/04 14:04:11
[openssh.git] / channels.c
index 14ff166ae457ed48993e61ed0e7f1031c49cb991..a7c69a066080689e409b16e6db3c21b00137efc0 100644 (file)
@@ -39,7 +39,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: channels.c,v 1.219 2005/07/04 00:58:42 djm Exp $");
+RCSID("$OpenBSD: channels.c,v 1.220 2005/07/04 14:04:11 markus Exp $");
 
 #include "ssh.h"
 #include "ssh1.h"
@@ -2964,7 +2964,9 @@ x11_request_forwarding_with_spoofing(int client_session_id, const char *disp,
        const char *cp;
        u_int32_t rnd = 0;
 
-       if (x11_saved_display && strcmp(disp, x11_saved_display) != 0) {
+       if (x11_saved_display == NULL)
+               x11_saved_display = xstrdup(disp);
+       else if (strcmp(disp, x11_saved_display) != 0) {
                error("x11_request_forwarding_with_spoofing: different "
                    "$DISPLAY already forwarded");
                return;
This page took 0.037681 seconds and 4 git commands to generate.