comparison svr-chansession.c @ 171:8e68dbe8687b

put back 'return;' on empty terminal mode strings which was erroneously removed in 3a6c6eeefe450a64e244ee39030938ddaacb8987
author Matt Johnston <matt@ucc.asn.au>
date Wed, 19 Jan 2005 11:41:04 +0000
parents 0cfba3034be5
children 161557a9dde8
comparison
equal deleted inserted replaced
170:a62cb364f615 171:8e68dbe8687b
437 dropbear_exit("bad term mode string"); 437 dropbear_exit("bad term mode string");
438 } 438 }
439 439
440 if (len == 0) { 440 if (len == 0) {
441 TRACE(("leave get_termmodes: empty terminal modes string")) 441 TRACE(("leave get_termmodes: empty terminal modes string"))
442 return;
442 } 443 }
443 444
444 while (((opcode = buf_getbyte(ses.payload)) != 0x00) && opcode <= 159) { 445 while (((opcode = buf_getbyte(ses.payload)) != 0x00) && opcode <= 159) {
445 446
446 /* must be before checking type, so that value is consumed even if 447 /* must be before checking type, so that value is consumed even if