From 93028bd055b46a117ede58f85e74cc3b3f9a6a32 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Tue, 5 Nov 2019 11:24:38 +0100 Subject: #915 Validate POST /refresh REST API parameters This patch ensures that all required parameters are sent in the request. --- sources/ogAdmServer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sources') diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index 3576f7f..dc6aa12 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -3885,6 +3885,9 @@ static int og_cmd_refresh(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, "Actualizar", CLIENTE_APAGADO); } -- cgit v1.2.3-18-g5258