]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: return ExpectedMore error if we require "more" varlink flag on method call
authorLennart Poettering <lennart@poettering.net>
Wed, 3 Apr 2024 14:46:09 +0000 (16:46 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Apr 2024 17:43:20 +0000 (02:43 +0900)
Fixes: #32066
src/resolve/resolved-varlink.c

index 6b835904be148483ae8937169ed778974cf024aa..25f85d82331103e77185f6c8b768b755222f9299 100644 (file)
@@ -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);