#915 Validate POST /shell/output REST API parameters

This patch ensures that all required parameters are sent in the request.
master
Roberto Hueso Gómez 2019-11-05 10:44:01 +01:00 committed by OpenGnSys Support Team
parent b403c7ae6c
commit 61059e1b2e
1 changed files with 3 additions and 0 deletions

View File

@ -3729,6 +3729,9 @@ static int og_cmd_run_get(json_t *element, struct og_msg_params *params,
return err;
}
if (!og_msg_params_validate(params, OG_REST_PARAM_ADDR))
return -1;
array = json_array();
if (!array)
return -1;