cc3200: Improve telnet_parse_input() in case of an incomplete option.

NotImplemented
Daniel Campora 2015-04-28 16:38:08 +02:00
parent 0458833072
commit f1ed8c8a2e
1 changed files with 3 additions and 2 deletions

View File

@ -468,8 +468,9 @@ static void telnet_parse_input (uint8_t *str, int16_t *len) {
}
}
else {
_str += 3;
*len -= 3;
// in case we have received an incomplete telnet option, unlikely, but possible
_str += MIN(3, *len);
*len -= MIN(3, *len);
}
}
}