mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 13:20:25 +00:00
Add args check to SetRouterSelectionJitter(). (#1296)
This commit is contained in:
@@ -1961,6 +1961,7 @@ void Interpreter::ProcessRouterSelectionJitter(int argc, char *argv[])
|
||||
else
|
||||
{
|
||||
SuccessOrExit(error = ParseLong(argv[0], value));
|
||||
VerifyOrExit(0 < value && value < 256, error = kThreadError_InvalidArgs);
|
||||
otSetRouterSelectionJitter(mInstance, static_cast<uint8_t>(value));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user