mirror of https://git.48k.eu/ogserver
#915 Validate POST /stop REST API parameters
This patch ensures that all required parameters are sent in the request.master
parent
0a41d5d02f
commit
bc1b958ceb
|
@ -3928,6 +3928,9 @@ static int og_cmd_stop(json_t *element, struct og_msg_params *params)
|
|||
break;
|
||||
}
|
||||
|
||||
if (!og_msg_params_validate(params, OG_REST_PARAM_ADDR))
|
||||
return -1;
|
||||
|
||||
return og_cmd_legacy_send(params, "Purgar", CLIENTE_APAGADO);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue