json_connection: keep pointer to the conn.

This is required for our next hack.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-10-19 11:47:48 +10:30
parent f4a2c4f8bb
commit 03e7be5bce
2 changed files with 4 additions and 0 deletions

View File

@@ -50,6 +50,9 @@ struct json_connection {
/* The global state */
struct lightningd *ld;
/* This io_conn (and our owner!) */
struct io_conn *conn;
/* Logging for this json connection. */
struct log *log;