From abc134ced99d034fe6d9dc859ccc31f24fe52246 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Jul 2016 19:52:01 +0200 Subject: [PATCH] Commit AUXPOW SegFault Fix --- stratum/coind_aux.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stratum/coind_aux.cpp b/stratum/coind_aux.cpp index a3ac346..2a86ebd 100644 --- a/stratum/coind_aux.cpp +++ b/stratum/coind_aux.cpp @@ -59,8 +59,11 @@ vector coind_aux_hashlist(YAAMP_COIND_AUX **auxs, int size) char hash_be[1024]; memset(hash_be, 0, 1024); - string_be(auxs[i]->hash, hash_be); - hashlist.push_back(hash_be); + if(auxs[i]->hash != NULL) + { + string_be(auxs[i]->hash, hash_be); + hashlist.push_back(hash_be); + } } else hashlist.push_back("0000000000000000000000000000000000000000000000000000000000000000");