Skip to content
Snippets Groups Projects
Commit f1ed8c8a authored by Daniel Campora's avatar Daniel Campora
Browse files

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

parent 04588330
Branches
No related tags found
No related merge requests found
...@@ -468,8 +468,9 @@ static void telnet_parse_input (uint8_t *str, int16_t *len) { ...@@ -468,8 +468,9 @@ static void telnet_parse_input (uint8_t *str, int16_t *len) {
} }
} }
else { else {
_str += 3; // in case we have received an incomplete telnet option, unlikely, but possible
*len -= 3; _str += MIN(3, *len);
*len -= MIN(3, *len);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment