Browse Source

learnok was never matched as length+payload

mcspr-patch-1
Maxim Prokhorov 4 years ago
parent
commit
8b01c29a28
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      code/espurna/rfbridge.cpp

+ 2
- 0
code/espurna/rfbridge.cpp View File

@ -201,6 +201,7 @@ struct RfbParser {
_payload.push_back(c); _payload.push_back(c);
if ((_payload_offset + _payload_length) == _payload.size()) { if ((_payload_offset + _payload_length) == _payload.size()) {
switch (_payload_code) { switch (_payload_code) {
case CodeLearnOk:
case CodeRecvBasic: case CodeRecvBasic:
case CodeRecvProto: case CodeRecvProto:
_state = &RfbParser::read_end; _state = &RfbParser::read_end;
@ -209,6 +210,7 @@ struct RfbParser {
_state = &RfbParser::read_until_end; _state = &RfbParser::read_until_end;
break; break;
default: default:
_state = &RfbParser::stop;
break; break;
} }


Loading…
Cancel
Save