[cli] add error check to udp send command (#4148)

This commit is contained in:
Jonathan Hui
2019-09-08 21:40:15 -07:00
committed by GitHub
parent 7761d3cc21
commit a154692422
+2 -1
View File
@@ -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
{