diff 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
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) {