dovgopoly
a1a4affe81
lightningd: fix segfault when parse_filter fails
We need to initialize ->json_cmd *before* complaining about malformed
filters.
```
lightningd: FATAL SIGNAL 11 (version v25.12-21-g3851187-modded)
0x1042d2023 ???
send_backtrace+0x4f:0
0x1042d20cb ???
crashdump+0x43:0
0x19fe3b743 ???
???:0
0x104180173 command_log
lightningd/jsonrpc.c:1406
0x10420d8f7 command_fail_badparam
common/json_command.c:25
0x104181a07 parse_request
lightningd/jsonrpc.c:1075
0x104181a07 read_json
lightningd/jsonrpc.c:1216
0x10424c65b next_plan
ccan/ccan/io/io.c:60
0x10424c65b do_plan
ccan/ccan/io/io.c:422
0x10424c587 io_ready
ccan/ccan/io/io.c:439
0x10424dd9b io_loop
ccan/ccan/io/poll.c:470
0x10417ede7 io_loop_with_timers
lightningd/io_loop_with_timers.c:22
0x104183a33 main
lightningd/lightningd.c:1492
```
Co-authored-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: JSON-RPC: malformed filters no longer crash lightningd.
2025-12-22 13:13:57 +01:00
..
2025-11-28 09:16:53 +10:30
2025-10-23 06:44:04 +10:30
2025-10-24 11:30:17 +10:30
2025-11-19 07:23:39 +10:30
2025-12-11 12:16:42 +10:30
2025-11-29 08:18:20 +10:30
2025-11-19 07:23:39 +10:30
2025-05-15 16:40:33 +09:30
2025-11-19 14:29:08 +10:30
2025-05-15 16:40:33 +09:30
2025-10-23 06:44:04 +10:30
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2024-11-25 20:23:21 +10:30
2025-11-13 21:21:29 +10:30
2025-08-19 13:37:50 +09:30
2025-10-26 12:37:58 +10:30
2025-11-20 16:30:50 +10:30
2025-11-12 13:58:43 +10:30
2025-10-23 06:44:04 +10:30
2025-11-19 07:23:39 +10:30
2024-06-19 15:54:24 +09:30
2025-10-23 06:44:04 +10:30
2025-10-23 06:44:04 +10:30
2025-10-23 06:44:04 +10:30
2025-12-19 12:37:36 +01:00
2025-10-23 06:44:04 +10:30
2025-11-13 21:21:29 +10:30
2024-03-20 13:51:48 +10:30
2025-10-26 12:37:58 +10:30
2025-10-26 12:37:58 +10:30
2025-11-13 21:21:29 +10:30
2025-08-14 18:57:05 +09:30
2025-11-10 15:05:27 +10:30
2025-11-10 15:05:27 +10:30
2025-11-17 10:56:18 +10:30
2025-11-10 15:05:27 +10:30
2025-12-22 13:13:57 +01:00
2025-08-18 10:01:07 +09:30
2025-11-19 07:23:39 +10:30
2025-11-13 21:21:29 +10:30
2025-11-13 21:21:29 +10:30
2024-12-16 09:48:51 +10:30
2025-10-23 06:44:04 +10:30
2025-11-19 14:29:08 +10:30
2025-11-18 14:28:22 +10:30
2025-10-01 12:12:56 +09:30
2025-12-19 15:28:46 -08:00
2025-11-19 07:23:39 +10:30
2025-10-23 06:44:04 +10:30
2025-10-23 06:44:04 +10:30
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2024-06-19 15:54:24 +09:30
2025-11-13 21:21:29 +10:30
2025-03-12 09:26:08 +10:30
2025-11-13 21:21:29 +10:30
2024-10-27 13:57:50 +11:00
2025-11-19 07:23:39 +10:30
2025-11-19 07:23:39 +10:30
2025-10-23 06:44:04 +10:30
2025-11-17 10:56:18 +10:30
2025-08-14 18:57:05 +09:30
2025-10-23 06:44:04 +10:30
2025-08-14 17:35:39 +09:30
2025-10-23 06:44:04 +10:30
2025-11-20 16:30:50 +10:30
2025-11-20 16:30:50 +10:30
2025-11-20 16:30:50 +10:30
2025-11-20 16:30:50 +10:30
2025-10-23 06:44:04 +10:30
2025-11-13 21:21:29 +10:30
2025-10-23 06:44:04 +10:30
2025-10-23 06:44:04 +10:30
2025-10-23 06:44:04 +10:30
2025-11-12 13:58:43 +10:30
2025-11-12 13:58:43 +10:30
2025-01-21 09:18:25 +10:30
2025-01-21 09:18:25 +10:30