cryptopkt: don't leak negotiation state.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2016-11-04 11:17:03 +10:30
parent 319eef266d
commit e0368cc82d
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ struct io_plan *peer_crypto_setup_(struct io_conn *conn,
BUILD_ASSERT(sizeof(struct crypto_pkt) == 20); BUILD_ASSERT(sizeof(struct crypto_pkt) == 20);
/* We store negotiation state here. */ /* We store negotiation state here. */
neg = tal(dstate, struct key_negotiate); neg = tal(conn, struct key_negotiate);
neg->cb = cb; neg->cb = cb;
neg->arg = arg; neg->arg = arg;
neg->dstate = dstate; neg->dstate = dstate;