]> 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)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 22 May 2026 12:57:29 +0000 (13:57 +0100)
Which was accidentally dropped in e6be5fb7200fb02e78e4f27f49a4d734b7b850a0.

Follow-up for e6be5fb7200fb02e78e4f27f49a4d734b7b850a0.

(cherry picked from commit bad594f79a11b8896f1a830f86ae3beefac0d22f)

src/ssh-generator/ssh-proxy.c

index fa42c5bee8021c58c34d2f2bd94fb6775aa70810..b20d49d6937b7d4025415b8313da6e9e6ff64ed4 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);