Skip to content

Commit

Permalink
The Zabbix 'vpoller.echo' key requires at least 1 parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Feb 17, 2015
1 parent f61e12a commit ccdd83f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra/zabbix/vpoller-module/vpoller.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,14 @@ zbx_module_vpoller(AGENT_REQUEST *request, AGENT_RESULT *result)
* Will echo back the first parameter you provide to it
*
* Return value:
* The value it was invoked with
* The first parameter it was invoked with
*/
int
zbx_module_vpoller_echo(AGENT_REQUEST *request, AGENT_RESULT *result)
{
const char *param;

if (request->nparam != 1) {
if (request->nparam < 1) {
SET_MSG_RESULT(result, strdup("Invalid number of key parameters"));
return (SYSINFO_RET_FAIL);
}
Expand Down

0 comments on commit ccdd83f

Please sign in to comment.