summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-varlink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-04-03 16:46:09 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-04-03 19:43:20 +0200
commit56efc39fbc4fadaada40f382212a45b85f10dcc0 (patch)
tree8663124e271267b719083bc040b8c2572f2e6d0f /src/resolve/resolved-varlink.c
parentMerge pull request #32043 from YHNdnzj/resume-clear-efi (diff)
downloadsystemd-56efc39fbc4fadaada40f382212a45b85f10dcc0.tar.xz
systemd-56efc39fbc4fadaada40f382212a45b85f10dcc0.zip
resolved: return ExpectedMore error if we require "more" varlink flag on method call
Fixes: #32066
Diffstat (limited to '')
-rw-r--r--src/resolve/resolved-varlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-varlink.c b/src/resolve/resolved-varlink.c
index 6b835904be..25f85d8233 100644
--- a/src/resolve/resolved-varlink.c
+++ b/src/resolve/resolved-varlink.c
@@ -1238,7 +1238,7 @@ static int vl_method_subscribe_query_results(Varlink *link, JsonVariant *paramet
/* if the client didn't set the more flag, it is using us incorrectly */
if (!FLAGS_SET(flags, VARLINK_METHOD_MORE))
- return varlink_error_invalid_parameter(link, NULL);
+ return varlink_error(link, VARLINK_ERROR_EXPECTED_MORE, NULL);
if (json_variant_elements(parameters) > 0)
return varlink_error_invalid_parameter(link, parameters);