peer: don't print uninitialized commit_num.

Reported-by: Lucas Betschart <lucasbetschart@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2016-12-15 11:44:48 +10:30
parent 2a68a984c3
commit e109977df7

View File

@ -4167,7 +4167,7 @@ static enum watch_result anchor_spent(struct peer *peer,
peer->local.commit->commit_num)) {
log_broken(peer->log,
"Can't resolve own anchor spend %"PRIu64"!",
commit_num);
peer->local.commit->commit_num);
goto unknown_spend;
}
resolve_our_unilateral(peer);