summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-01-19 11:41:04 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-01-19 11:41:04 +0000
commit6013d993b98c747941ba343f67e138a21ed470e9 (patch)
tree91ded047ef15081cd20238af4ff491459eb0a321
parentb7dbb29e686e9dfb1a766d427007e69d4db044c2 (diff)
put back 'return;' on empty terminal mode strings which was erroneously
removed in 3a6c6eeefe450a64e244ee39030938ddaacb8987 --HG-- extra : convert_revision : 75ed8083a683ebdb2fceca4a856d803fdeeb60af
-rw-r--r--svr-chansession.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index c365114..c04d592 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -439,6 +439,7 @@ static void get_termmodes(struct ChanSess *chansess) {
if (len == 0) {
TRACE(("leave get_termmodes: empty terminal modes string"))
+ return;
}
while (((opcode = buf_getbyte(ses.payload)) != 0x00) && opcode <= 159) {