summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordtucker <dtucker>2011-11-03 23:55:24 +0000
committerdtucker <dtucker>2011-11-03 23:55:24 +0000
commitbb8171827fb18805799041df08c6e0d42cfb5891 (patch)
treec663b937c48300e85bb10312347eca2d5804a6eb
parenteb921c5915b6522de4fcef7cbc8d6f2b2f89c678 (diff)
downloadopenssh-bb8171827fb18805799041df08c6e0d42cfb5891.tar.gz
- djm@cvs.openbsd.org 2011/10/24 02:13:13
[session.c] bz#1859: send tty break to pty master instead of (probably already closed) slave side; "looks good" markus@
-rw-r--r--ChangeLog4
-rw-r--r--session.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3f38bb4a..924649e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,10 @@
bz#1943: unbreak stdio forwarding when ControlPersist is in user - ssh
was incorrectly requesting the forward in both the control master and
slave. skip requesting it in the master to fix. ok markus@
+ - djm@cvs.openbsd.org 2011/10/24 02:13:13
+ [session.c]
+ bz#1859: send tty break to pty master instead of (probably already
+ closed) slave side; "looks good" markus@
20111025
- (dtucker) [contrib/cygwin/Makefile] Continue if installing a doc file
diff --git a/session.c b/session.c
index 6a704007..5dad2629 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.258 2010/11/25 04:10:09 djm Exp $ */
+/* $OpenBSD: session.c,v 1.259 2011/10/24 02:13:13 djm Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -2166,7 +2166,7 @@ session_break_req(Session *s)
packet_get_int(); /* ignored */
packet_check_eom();
- if (s->ttyfd == -1 || tcsendbreak(s->ttyfd, 0) < 0)
+ if (s->ptymaster == -1 || tcsendbreak(s->ptymaster, 0) < 0)
return 0;
return 1;
}