fix null ptr issue in pool.c
@@ -531,7 +531,8 @@ static void calculate_nopaid_shares(struct connection_pool_data *conn_data, stru
conn_data->maxdiff[i] = diff;
}
- if(conn_data->miner && conn_data->miner->task_time < task_time) {
+ if(conn_data->miner) {
+ if(conn_data->miner->task_time < task_time) {
conn_data->miner->task_time = task_time;
if(conn_data->miner->maxdiff[i] > 0) {
@@ -545,6 +546,7 @@ static void calculate_nopaid_shares(struct connection_pool_data *conn_data, stru
}
}
}
+}
static int register_new_miner(connection_list_element *connection, int index)
{
