mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
cryptopkt: don't leak negotiation state.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -633,7 +633,7 @@ struct io_plan *peer_crypto_setup_(struct io_conn *conn,
|
||||
BUILD_ASSERT(sizeof(struct crypto_pkt) == 20);
|
||||
|
||||
/* We store negotiation state here. */
|
||||
neg = tal(dstate, struct key_negotiate);
|
||||
neg = tal(conn, struct key_negotiate);
|
||||
neg->cb = cb;
|
||||
neg->arg = arg;
|
||||
neg->dstate = dstate;
|
||||
|
||||
Reference in New Issue
Block a user