cc3200: Improve telnet_parse_input() in case of an incomplete option.
This commit is contained in:
parent
0458833072
commit
f1ed8c8a2e
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user