Browse Source

Bugfix: Stratum: When destroying cURL easy handle, be sure to clear pool stratum_curl pointer

Luke Dashjr 13 years ago
parent
commit
ea28140ac4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      util.c

+ 1 - 0
util.c

@@ -1567,6 +1567,7 @@ bool initiate_stratum(struct pool *pool)
 	}
 	if (pool->sock == INVSOCK)
 	{
+		pool->stratum_curl = NULL;
 		curl_easy_cleanup(curl);
 		applog(LOG_ERR, "Stratum connect succeeded, but technical problem extracting socket (pool %u)", pool->pool_no);
 		goto out;