=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/session.c,v retrieving revision 1.301 retrieving revision 1.302 diff -u -r1.301 -r1.302 --- src/usr.bin/ssh/session.c 2018/07/03 10:59:35 1.301 +++ src/usr.bin/ssh/session.c 2018/07/09 21:20:26 1.302 @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.301 2018/07/03 10:59:35 djm Exp $ */ +/* $OpenBSD: session.c,v 1.302 2018/07/09 21:20:26 markus Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved @@ -1567,7 +1567,6 @@ session_pty_req(struct ssh *ssh, Session *s) { u_int len; - int n_bytes; if (!auth_opts->permit_pty_flag || !options.permit_tty) { debug("Allocating a pty not permitted for this connection."); @@ -1602,8 +1601,7 @@ } debug("session_pty_req: session %d alloc %s", s->self, s->tty); - n_bytes = packet_remaining(); - tty_parse_modes(s->ttyfd, &n_bytes); + ssh_tty_parse_modes(ssh, s->ttyfd); if (!use_privsep) pty_setowner(s->pw, s->tty);