ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.81k stars 889 forks source link

channeld: fix crash with pre-TLV peers. #7650

Closed rustyrussell closed 1 week ago

rustyrussell commented 1 week ago

send_tlvs is NULL if no special features are supported, and peer sets next_to_send anyway:

0x5ed1c6719538 peer_reconnect
channeld/channeld.c:5205
0x5ed1c6719dab init_channel
channeld/channeld.c:5959
0x5ed1c6719f04 main
channeld/channeld.c:6005

Backport: v24.08 Fixes: https://github.com/ElementsProject/lightning/issues/7486