wallet/wallet.c: bind_null if (in->preimage)

This commit is contained in:
Jan Sarenik 2018-06-15 12:54:22 +02:00 committed by Rusty Russell
parent 580b8ba8a9
commit 5205de7b8e

View File

@ -1124,6 +1124,8 @@ void wallet_htlc_save_in(struct wallet *wallet,
if (in->preimage)
sqlite3_bind_preimage(stmt, 7, in->preimage);
else
sqlite3_bind_null(stmt, 7);
sqlite3_bind_int(stmt, 8, in->hstate);
sqlite3_bind_blob(stmt, 9, &in->shared_secret,