mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 08:07:47 +00:00
[cli] adjust arg length checking to 'coap parameters' (#4595)
This commit is contained in:
@@ -143,13 +143,12 @@ otError Coap::ProcessStop(int argc, char *argv[])
|
||||
|
||||
otError Coap::ProcessParameters(int argc, char *argv[])
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
|
||||
VerifyOrExit(argc > 0, error = OT_ERROR_INVALID_ARGS);
|
||||
|
||||
otError error = OT_ERROR_NONE;
|
||||
bool * defaultTxParameters;
|
||||
otCoapTxParameters *txParameters;
|
||||
|
||||
VerifyOrExit(argc > 1, error = OT_ERROR_INVALID_ARGS);
|
||||
|
||||
if (strcmp(argv[1], "request") == 0)
|
||||
{
|
||||
txParameters = &mRequestTxParameters;
|
||||
|
||||
Reference in New Issue
Block a user