diff options
author | MeshCollider <dobsonsa68@gmail.com> | 2017-09-14 15:18:55 +1200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-11-02 13:17:58 -0400 |
commit | d570aa4290bf678bab764aa58dde19167bc927f5 (patch) | |
tree | 7398db5824d4dc0574a809e25e0a4ddf9d8af79d /src/init.cpp | |
parent | 0a5477c7e30667f4dc864b69975a8da5f63ca71e (diff) |
Fix uninitialized g_connman crash in Shutdown()
Github-Pull: #11326
Rebased-From: 77939f27f7dc42640ebfb9fe52490a2ddacc3ad4
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 798c24a2a8..4efc06a4be 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -197,7 +197,7 @@ void Shutdown() // Because these depend on each-other, we make sure that neither can be // using the other before destroying them. UnregisterValidationInterface(peerLogic.get()); - g_connman->Stop(); + if(g_connman) g_connman->Stop(); peerLogic.reset(); g_connman.reset(); |