mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 16:14:26 +01:00
common: don't crash on bad sphinx payload.
It's cleanest to eliminate the SPHINX_INVALID_PAYLOAD altogether. lightning_channeld: FATAL SIGNAL (version v0.7.3-242-gb1583bb-modded) 0x55a8169eed08 send_backtrace common/daemon.c:41 0x55a8169fc3eb status_failed common/status.c:206 0x55a8169fc657 status_backtrace_exit common/subdaemon.c:25 0x55a8169eedbb crashdump common/daemon.c:57 0x7f0eaff8446f ??? ???:0 0x7f0eaff843eb ??? ???:0 0x7f0eaff63898 ??? ???:0 0x55a8169fb29f route_step_decode common/sphinx.c:759 0x55a8169fb60a process_onionpacket common/sphinx.c:834 0x55a8169d9b34 get_shared_secret channeld/channeld.c:605 0x55a8169d9d35 handle_peer_add_htlc channeld/channeld.c:649 0x55a8169dd88d peer_in channeld/channeld.c:1838 0x55a8169e11a8 main channeld/channeld.c:3233 0x7f0eaff651e2 ??? Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
f8d8348c9f
commit
bb538a1862
@@ -71,7 +71,6 @@ struct hop_data_legacy {
|
||||
enum sphinx_payload_type {
|
||||
SPHINX_V0_PAYLOAD = 0,
|
||||
SPHINX_TLV_PAYLOAD = 1,
|
||||
SPHINX_INVALID_PAYLOAD = 254,
|
||||
SPHINX_RAW_PAYLOAD = 255,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user