summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index 6e48a2fae..a0a0c2d9c 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: session.c,v 1.267 2013/10/14 21:20:52 djm Exp $ */ 1/* $OpenBSD: session.c,v 1.268 2013/10/29 09:48:02 djm Exp $ */
2/* 2/*
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved 4 * All rights reserved
@@ -2062,7 +2062,7 @@ session_pty_req(Session *s)
2062 u_int len; 2062 u_int len;
2063 int n_bytes; 2063 int n_bytes;
2064 2064
2065 if (no_pty_flag) { 2065 if (no_pty_flag || !options.permit_tty) {
2066 debug("Allocating a pty not permitted for this authentication."); 2066 debug("Allocating a pty not permitted for this authentication.");
2067 return 0; 2067 return 0;
2068 } 2068 }