changeset 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 a62cb364f615
children 3e49d8d18005
files svr-chansession.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/svr-chansession.c	Tue Jan 11 16:17:03 2005 +0000
+++ b/svr-chansession.c	Wed Jan 19 11:41:04 2005 +0000
@@ -439,6 +439,7 @@
 
 	if (len == 0) {
 		TRACE(("leave get_termmodes: empty terminal modes string"))
+		return;
 	}
 
 	while (((opcode = buf_getbyte(ses.payload)) != 0x00) && opcode <= 159) {