summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ttymodes.c18
2 files changed, 15 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 4dd368151..04275b22c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -101,6 +101,9 @@
101 - deraadt@cvs.openbsd.org 2006/03/20 18:48:34 101 - deraadt@cvs.openbsd.org 2006/03/20 18:48:34
102 [channels.c fatal.c kex.c packet.c serverloop.c] 102 [channels.c fatal.c kex.c packet.c serverloop.c]
103 spacing 103 spacing
104 - deraadt@cvs.openbsd.org 2006/03/20 21:11:53
105 [ttymodes.c]
106 spacing
104 107
10520060325 10820060325
106 - OpenBSD CVS Sync 109 - OpenBSD CVS Sync
@@ -4358,4 +4361,4 @@
4358 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4361 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4359 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4362 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4360 4363
4361$Id: ChangeLog,v 1.4271 2006/03/26 03:10:14 djm Exp $ 4364$Id: ChangeLog,v 1.4272 2006/03/26 03:10:34 djm Exp $
diff --git a/ttymodes.c b/ttymodes.c
index 2c95938d9..40d536e2c 100644
--- a/ttymodes.c
+++ b/ttymodes.c
@@ -385,7 +385,8 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
385 n_bytes += 4; 385 n_bytes += 4;
386 baud = packet_get_int(); 386 baud = packet_get_int();
387 debug3("tty_parse_modes: ispeed %d", baud); 387 debug3("tty_parse_modes: ispeed %d", baud);
388 if (failure != -1 && cfsetispeed(&tio, baud_to_speed(baud)) == -1) 388 if (failure != -1 &&
389 cfsetispeed(&tio, baud_to_speed(baud)) == -1)
389 error("cfsetispeed failed for %d", baud); 390 error("cfsetispeed failed for %d", baud);
390 break; 391 break;
391 392
@@ -395,7 +396,8 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
395 n_bytes += 4; 396 n_bytes += 4;
396 baud = packet_get_int(); 397 baud = packet_get_int();
397 debug3("tty_parse_modes: ospeed %d", baud); 398 debug3("tty_parse_modes: ospeed %d", baud);
398 if (failure != -1 && cfsetospeed(&tio, baud_to_speed(baud)) == -1) 399 if (failure != -1 &&
400 cfsetospeed(&tio, baud_to_speed(baud)) == -1)
399 error("cfsetospeed failed for %d", baud); 401 error("cfsetospeed failed for %d", baud);
400 break; 402 break;
401 403
@@ -443,11 +445,12 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
443 /* 445 /*
444 * It is a truly undefined opcode (160 to 255). 446 * It is a truly undefined opcode (160 to 255).
445 * We have no idea about its arguments. So we 447 * We have no idea about its arguments. So we
446 * must stop parsing. Note that some data may be 448 * must stop parsing. Note that some data
447 * left in the packet; hopefully there is nothing 449 * may be left in the packet; hopefully there
448 * more coming after the mode data. 450 * is nothing more coming after the mode data.
449 */ 451 */
450 logit("parse_tty_modes: unknown opcode %d", opcode); 452 logit("parse_tty_modes: unknown opcode %d",
453 opcode);
451 goto set; 454 goto set;
452 } 455 }
453 } else { 456 } else {
@@ -463,7 +466,8 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
463 (void) packet_get_int(); 466 (void) packet_get_int();
464 break; 467 break;
465 } else { 468 } else {
466 logit("parse_tty_modes: unknown opcode %d", opcode); 469 logit("parse_tty_modes: unknown opcode %d",
470 opcode);
467 goto set; 471 goto set;
468 } 472 }
469 } 473 }