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");