commit | a15469242226188115546fb52ebc810a941453b1 | [log] [tgz] |
---|---|---|
author | Jonathan Hui <jonhui@google.com> | Sun Sep 08 21:40:15 2019 -0700 |
committer | GitHub <noreply@github.com> | Sun Sep 08 21:40:15 2019 -0700 |
tree | dc6b8691cc6463ad4c14fa60eddeb0bbd66cadb6 | |
parent | 7761d3cc21c3daa4b005feeff613914f035c946b [diff] |
[cli] add error check to `udp send` command (#4148)
diff --git a/src/cli/cli_udp.cpp b/src/cli/cli_udp.cpp index c13fb1c..60f9ddb 100644 --- a/src/cli/cli_udp.cpp +++ b/src/cli/cli_udp.cpp
@@ -148,7 +148,8 @@ { if (strcmp(argv[curArg++], "-s") == 0) { - Interpreter::ParseUnsignedLong(argv[curArg++], autoGenMessageLength); + error = Interpreter::ParseUnsignedLong(argv[curArg++], autoGenMessageLength); + SuccessOrExit(error); } else {