[Pkg-bitcoin-commits] [bitcoin] 93/126: Fix uninitialized g_connman crash in Shutdown()

Jonas Smedegaard dr at jones.dk
Mon Nov 13 20:02:57 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.15.1_dfsg-1
in repository bitcoin.

commit d570aa4290bf678bab764aa58dde19167bc927f5
Author: MeshCollider <dobsonsa68 at gmail.com>
Date:   Thu Sep 14 15:18:55 2017 +1200

    Fix uninitialized g_connman crash in Shutdown()
    
    Github-Pull: #11326
    Rebased-From: 77939f27f7dc42640ebfb9fe52490a2ddacc3ad4
---
 src/init.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/init.cpp b/src/init.cpp
index 798c24a..4efc06a 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();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/bitcoin.git



More information about the Pkg-bitcoin-commits mailing list