mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 16:14:26 +01:00
channeld: fix corruption when dealing with queued packets.
master is not actually a tal object! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
c92dd56dd5
commit
4e81d2431b
@@ -1970,7 +1970,7 @@ out:
|
||||
if (msg) {
|
||||
/* Free old packet exactly like daemon_conn_read_next */
|
||||
master->msg_in = tal_free(master->msg_in);
|
||||
master->msg_in = cast_const(u8 *, tal_steal(master,msg));
|
||||
master->msg_in = cast_const(u8 *, tal_steal(peer, msg));
|
||||
return req_in(conn, master);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user