]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ssh-proxy: add a missing dispatch table sentinel
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 25 Apr 2026 21:51:48 +0000 (23:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 26 Apr 2026 18:59:37 +0000 (20:59 +0200)
Which was accidentally dropped in e6be5fb7200fb02e78e4f27f49a4d734b7b850a0.

Follow-up for e6be5fb7200fb02e78e4f27f49a4d734b7b850a0.

src/ssh-generator/ssh-proxy.c

index 79d8ee056568e440a9412bb7c11b41fbfa4c7fac..f253036522796312797b0e6760af7a78854b0af0 100644 (file)
@@ -337,6 +337,7 @@ static int process_machine(const char *machine, const char *port) {
                 { "vSockCid", SD_JSON_VARIANT_UNSIGNED, sd_json_dispatch_uint32,       voffsetof(p, cid),     0                 },
                 { "class",    SD_JSON_VARIANT_STRING,   sd_json_dispatch_const_string, voffsetof(p, class),   SD_JSON_MANDATORY },
                 { "service",  SD_JSON_VARIANT_STRING,   sd_json_dispatch_const_string, voffsetof(p, service), 0                 },
+                {}
         };
 
         r = sd_json_dispatch(result, dispatch_table, SD_JSON_ALLOW_EXTENSIONS, &p);