mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 03:07:47 +00:00
[cli] add error check to udp send command (#4148)
This commit is contained in:
+2
-1
@@ -148,7 +148,8 @@ otError UdpExample::ProcessSend(int argc, char *argv[])
|
||||
{
|
||||
if (strcmp(argv[curArg++], "-s") == 0)
|
||||
{
|
||||
Interpreter::ParseUnsignedLong(argv[curArg++], autoGenMessageLength);
|
||||
error = Interpreter::ParseUnsignedLong(argv[curArg++], autoGenMessageLength);
|
||||
SuccessOrExit(error);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user