rgb-cln/gossipd
Rusty Russell d370aac020 gossipd: fix longstanding logic error in gossip_generation.
`hc` is never NULL, since it's `hc = &chan->half[direction];`;
we really meant "is it initialized", and valgrind under CI finally
caught it:

```
==69243== Conditional jump or move depends on uninitialised value(s)
==69243==    at 0x11C595: handle_local_channel_update (gossip_generation.c:758)
==69243==    by 0x115254: recv_req (gossipd.c:986)
==69243==    by 0x128F8D: handle_read (daemon_conn.c:31)
==69243==    by 0x16BEE1: next_plan (io.c:59)
==69243==    by 0x16CAE9: do_plan (io.c:407)
==69243==    by 0x16CB2B: io_ready (io.c:417)
==69243==    by 0x16EE1E: io_loop (poll.c:453)
==69243==    by 0x1154DA: main (gossipd.c:1089)
==69243==
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-02-08 11:15:52 +10:30
..
test connectd: handle onion messages. 2022-02-08 11:15:52 +10:30
Makefile connectd: handle onion messages. 2022-02-08 11:15:52 +10:30
broadcast.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
gossip_generation.c gossipd: fix longstanding logic error in gossip_generation. 2022-02-08 11:15:52 +10:30
gossip_generation.h channeld: send channel updates and announcements via lightningd. 2022-02-08 11:15:52 +10:30
gossip_store.c channeld: send channel updates and announcements via lightningd. 2022-02-08 11:15:52 +10:30
gossip_store.h daemons: remove unused functions or make static. 2021-12-06 10:05:39 +10:30
gossip_store_wire.csv gossip_store: create end marker for EOF. 2021-05-22 17:53:04 +09:30
gossipd.c connectd: remove second gossip fd. 2022-02-08 11:15:52 +10:30
gossipd.h connectd: remove second gossip fd. 2022-02-08 11:15:52 +10:30
gossipd_peerd_wire.csv channeld: send channel updates and announcements via lightningd. 2022-02-08 11:15:52 +10:30
gossipd_wire.csv connectd: handle onion messages. 2022-02-08 11:15:52 +10:30
queries.c gossipd: send all gossip msgs directly to connectd, not peer. 2022-02-08 11:15:52 +10:30
queries.h gossipd: send all gossip msgs directly to connectd, not peer. 2022-02-08 11:15:52 +10:30
routing.c channeld: send channel updates and announcements via lightningd. 2022-02-08 11:15:52 +10:30
routing.h channeld: send channel updates and announcements via lightningd. 2022-02-08 11:15:52 +10:30
seeker.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
seeker.h gossipd: restore dev-suppress-gossip functionality. 2019-10-10 21:48:52 -05:00