From fde0fe57dc1907f7c1ee1487d8932818903d93b9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 31 Jul 2018 05:32:30 -1100 Subject: [PATCH] Test --- src/cc/dice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 3a16ea7ba..d5756990f 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -128,7 +128,7 @@ void *dicefinish(void *_ptr) if ( duplicate == 0 ) { res = DiceWinLoseTimeout(0,name,ptr->fundingtxid,ptr->bettxid,ptr->iswin); - if ( is_hexstr((char *)res.c_str(),0) > 64 ) + if ( res != 0 && res.size() > 64 && is_hexstr((char *)res.c_str(),0) > 64 ) { CTransaction tx; uint256 txid; char str[65]; LOCK(cs_main);