Browse code

sl: Fix 3xx stats RPC marshalling

The struct_add() method was getting 4 values but only 3 "d".

(cherry picked from commit ac55cc5ce5fcbb50d3a2a6b228585dce8fc1150d)

Guillem Jover authored on 05/11/2020 17:34:43 • Henning Westerholt committed on 06/11/2020 14:25:16
Showing 1 changed files
... ...
@@ -73,7 +73,7 @@ static void rpc_stats(rpc_t* rpc, void* c)
73 73
 			"202", total.err[RT_202],
74 74
 			"2xx", total.err[RT_2xx]);
75 75
 
76
-	rpc->struct_add(st, "ddd",
76
+	rpc->struct_add(st, "dddd",
77 77
 			"300", total.err[RT_300],
78 78
 			"301", total.err[RT_301],
79 79
 			"302", total.err[RT_302],