mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
channeld: Properly pad and HMAC onion replies that our masterd generated.
This commit is contained in:
parent
7101db060b
commit
8248dccaee
@ -2332,10 +2332,16 @@ static void handle_fail(struct peer *peer, const u8 *inmsg)
|
||||
failcode);
|
||||
} else {
|
||||
u8 *reply;
|
||||
u8 *failmsg;
|
||||
|
||||
if (failcode) {
|
||||
failmsg = make_failmsg(inmsg, peer, h,
|
||||
failcode, &scid);
|
||||
errpkt = create_onionreply(inmsg,
|
||||
h->shared_secret,
|
||||
failmsg);
|
||||
}
|
||||
|
||||
if (failcode)
|
||||
errpkt = make_failmsg(inmsg, peer, h,
|
||||
failcode, &scid);
|
||||
reply = wrap_onionreply(inmsg, h->shared_secret,
|
||||
errpkt);
|
||||
msg = towire_update_fail_htlc(peer, &peer->channel_id,
|
||||
|
Loading…
Reference in New Issue
Block a user