From 580b8ba8a90e64613fcea6b771512e47d31bd257 Mon Sep 17 00:00:00 2001 From: Jan Sarenik Date: Fri, 15 Jun 2018 12:49:00 +0200 Subject: [PATCH] wallet/wallet.c: bind_null if (chan->remote_shutdown_scriptpubkey) --- wallet/wallet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wallet/wallet.c b/wallet/wallet.c index e87f829e1..21a7a628a 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -911,6 +911,8 @@ void wallet_channel_save(struct wallet *w, struct channel *chan) sqlite3_bind_blob(stmt, 16, chan->remote_shutdown_scriptpubkey, tal_len(chan->remote_shutdown_scriptpubkey), SQLITE_TRANSIENT); + else + sqlite3_bind_null(stmt, 16); sqlite3_bind_int64(stmt, 17, chan->final_key_idx); sqlite3_bind_int64(stmt, 18, chan->our_config.id);