diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-04-03 16:46:09 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-04-03 19:43:20 +0200 |
commit | 56efc39fbc4fadaada40f382212a45b85f10dcc0 (patch) | |
tree | 8663124e271267b719083bc040b8c2572f2e6d0f /src/resolve/resolved-varlink.c | |
parent | Merge pull request #32043 from YHNdnzj/resume-clear-efi (diff) | |
download | systemd-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.c | 2 |
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); |