summaryrefslogtreecommitdiffstats
path: root/web/api
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-04 08:57:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-04 08:57:43 +0000
commit42ad44d1fea072d23f2e0067bca4ba6bc0b2a523 (patch)
treeb1c1459c6914f1d4c5b123b601b9dbecb049360c /web/api
parentAdding upstream version 1.42.1. (diff)
downloadnetdata-42ad44d1fea072d23f2e0067bca4ba6bc0b2a523.tar.xz
netdata-42ad44d1fea072d23f2e0067bca4ba6bc0b2a523.zip
Adding upstream version 1.42.2.upstream/1.42.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/api')
-rw-r--r--web/api/web_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/api/web_api.c b/web/api/web_api.c
index 96ab00390..be6d898b8 100644
--- a/web/api/web_api.c
+++ b/web/api/web_api.c
@@ -73,6 +73,9 @@ int web_client_api_request_vX(RRDHOST *host, struct web_client *w, char *url_pat
return HTTP_RESP_BAD_REQUEST;
}
+ if (api_command != url_path_endpoint)
+ freez(api_command);
+
short int code = web_client_check_acl_and_bearer(w, api_commands[i].acl);
if(code != HTTP_RESP_OK) {
if(code == HTTP_RESP_FORBIDDEN)