From 6013d993b98c747941ba343f67e138a21ed470e9 Mon Sep 17 00:00:00 2001
From: Matt Johnston <matt@ucc.asn.au>
Date: Wed, 19 Jan 2005 11:41:04 +0000
Subject: [PATCH] put back 'return;' on empty terminal mode strings which was
 erroneously removed in 3a6c6eeefe450a64e244ee39030938ddaacb8987

--HG--
extra : convert_revision : 75ed8083a683ebdb2fceca4a856d803fdeeb60af
---
 svr-chansession.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/svr-chansession.c b/svr-chansession.c
index c3651146..c04d592d 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) {
-- 
GitLab