File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ t_cliResult processCommand(char *cmdBuffer)
180
180
}
181
181
else
182
182
{
183
- commandSendErrorResponse (tokens[0 ], tokens[ 1 ] , (char *)" Unknown setting" );
183
+ commandSendErrorResponse (tokens[0 ], field , (char *)" Unknown setting" );
184
184
return (CLI_UNKNOWN_SETTING);
185
185
}
186
186
}
@@ -189,8 +189,13 @@ t_cliResult processCommand(char *cmdBuffer)
189
189
{
190
190
if (tokenCount != 3 )
191
191
{
192
- commandSendErrorResponse (tokens[0 ],
193
- (char *)" Incorrect number of arguments" ); // Incorrect number of arguments
192
+ if (tokenCount == 2 )
193
+ commandSendErrorResponse (tokens[0 ], tokens[1 ],
194
+ (char *)" Incorrect number of arguments" ); // Incorrect number of arguments
195
+ else
196
+ commandSendErrorResponse (tokens[0 ],
197
+ (char *)" Incorrect number of arguments" ); // Incorrect number of arguments
198
+
194
199
return (CLI_BAD_FORMAT);
195
200
}
196
201
else
@@ -213,7 +218,7 @@ t_cliResult processCommand(char *cmdBuffer)
213
218
}
214
219
else
215
220
{
216
- commandSendErrorResponse (tokens[0 ], (char *)" Unknown setting" );
221
+ commandSendErrorResponse (tokens[0 ], field, (char *)" Unknown setting" );
217
222
return (CLI_UNKNOWN_SETTING);
218
223
}
219
224
}
You can’t perform that action at this time.
0 commit comments