HomePhabricator

net: only delete CConnman if it's been created

Description

net: only delete CConnman if it's been created

In the case of (for example) an already-running bitcoind, the shutdown sequence
begins before CConnman has been created, leading to a null-pointer dereference
when g_connman->Stop() is called.

Instead, Just let the CConnman dtor take care of stopping.

Details

Provenance
Cory Fields <cory-nospam-@coryfields.com>Authored on Sep 13 2016, 18:42
deadalnixPushed on May 14 2017, 22:04
Parents
rABCfa7caf6d9116: Merge #8693: add witness address to address book
Branches
Unknown
Tags
Unknown

Event Timeline

Cory Fields <cory-nospam-@coryfields.com> committed rABC36fa01f217fb: net: only delete CConnman if it's been created (authored by Cory Fields <cory-nospam-@coryfields.com>).Sep 14 2016, 02:43