summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-06-21 03:14:49 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-06-21 03:14:49 +0000
commit699776e9ec1378c1e962146a15436e888e9594b0 (patch)
tree0189dbbe436772e1635270a00b2cb9ce09f1d508 /session.c
parentc85ab8afab0b1f73cda607859f32f0d9558af594 (diff)
- markus@cvs.openbsd.org 2001/06/19 14:09:45
[session.c sshd.8] disable x11-fwd if use_login is enabled; from lukem@wasabisystems.com
Diffstat (limited to 'session.c')
-rw-r--r--session.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/session.c b/session.c
index 005f7ab17..187f38edd 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
33 */ 33 */
34 34
35#include "includes.h" 35#include "includes.h"
36RCSID("$OpenBSD: session.c,v 1.90 2001/06/19 12:34:09 markus Exp $"); 36RCSID("$OpenBSD: session.c,v 1.91 2001/06/19 14:09:45 markus Exp $");
37 37
38#include "ssh.h" 38#include "ssh.h"
39#include "ssh1.h" 39#include "ssh1.h"
@@ -1980,6 +1980,11 @@ session_setup_x11fwd(Session *s)
1980 packet_send_debug("No xauth program; cannot forward with spoofing."); 1980 packet_send_debug("No xauth program; cannot forward with spoofing.");
1981 return 0; 1981 return 0;
1982 } 1982 }
1983 if (options.use_login) {
1984 packet_send_debug("X11 forwarding disabled; "
1985 "not compatible with UseLogin=yes.");
1986 return 0;
1987 }
1983 if (s->display != NULL) { 1988 if (s->display != NULL) {
1984 debug("X11 display already set."); 1989 debug("X11 display already set.");
1985 return 0; 1990 return 0;