HomePhabricator

Fix segfault when node no longer connected
b7d5bda29c07Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Reviewer
Restricted Project
Differential Revision
D324: Fix segfault when node no longer connected
Parents
rSTAGING409cb23d09ec: Replace application icon
Branches
Unknown
Tags
Unknown