HomePhabricator

Fix segfault when node no longer connected

Description

Fix segfault when node no longer connected

Summary:
nodestate can be NULL when node is no longer connected,
leading to a segmentation fault (refer T64).

Added assertions to other places where node state was
obtained and later used without checking if non-null.

Test Plan: make check

Reviewers: #bitcoin_abc, deadalnix, sickpig, awemany, dagurval, CCulianu

Reviewed By: #bitcoin_abc, deadalnix, dagurval

Differential Revision: https://reviews.bitcoinabc.org/D324

Details

Provenance
freetraderAuthored on Jul 13 2017, 23:04
freetraderPushed on Jul 14 2017, 12:26
Reviewer
Restricted Project
Differential Revision
D324: Fix segfault when node no longer connected
Parents
rABC409cb23d09ec: Replace application icon
Branches
Unknown
Tags
Unknown