summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rest.c b/src/rest.c
index ae4c44d..196a25d 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -3859,6 +3859,11 @@ int og_client_state_process_payload_rest(struct og_client *cli)
if (method != OG_METHOD_GET)
return og_client_method_not_found(cli);
+ if (root) {
+ syslog(LOG_ERR, "command scopes with payload\n");
+ return og_client_bad_request(cli);
+ }
+
err = og_cmd_scope_get(root, &params, buf_reply);
} else if (!strncmp(cmd, "poweroff", strlen("poweroff"))) {
if (method != OG_METHOD_POST)