]> git.bitcoin.ninja Git - rust-lightning/commit
Fix pre-noise peer disconnect panic on non-Err disconnect
authorMatt Corallo <git@bluematt.me>
Thu, 8 Nov 2018 00:06:34 +0000 (10:36 +1030)
committerMatt Corallo <git@bluematt.me>
Sun, 18 Nov 2018 17:59:02 +0000 (12:59 -0500)
commitb4fc5b65e06e97e94aa5f6bd84fb25f4ce208c6b
tree42fb70e17c4303ad7ef5a1dd211d0f191e4ca8c0
parentb14baa03ab20911489bee50688785f2631f0d0f1
Fix pre-noise peer disconnect panic on non-Err disconnect

366e79615b7251771465d6c69c2941ac233674da fixed the same crash for
Errs that come up during handshake, but was incomplete and should
have just dropped the node_id being different based on
inbound/outbound. This patch does so and actually fixes the issue.

Found by fuzzer.
src/ln/peer_channel_encryptor.rs
src/ln/peer_handler.rs