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
......@@ -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);
}
}
}
......
Supports Markdown
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