summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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) {