Skip to content
Snippets Groups Projects
Commit 6013d993 authored by Matt Johnston's avatar Matt Johnston
Browse files

put back 'return;' on empty terminal mode strings which was erroneously

removed in 3a6c6eeefe450a64e244ee39030938ddaacb8987

--HG--
extra : convert_revision : 75ed8083a683ebdb2fceca4a856d803fdeeb60af
parent b7dbb29e
No related merge requests found
...@@ -439,6 +439,7 @@ static void get_termmodes(struct ChanSess *chansess) { ...@@ -439,6 +439,7 @@ static void get_termmodes(struct ChanSess *chansess) {
if (len == 0) { if (len == 0) {
TRACE(("leave get_termmodes: empty terminal modes string")) TRACE(("leave get_termmodes: empty terminal modes string"))
return;
} }
while (((opcode = buf_getbyte(ses.payload)) != 0x00) && opcode <= 159) { while (((opcode = buf_getbyte(ses.payload)) != 0x00) && opcode <= 159) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment