From 8c2a7cb90b18dbd38c4cbd2c3cea3e708fd67c75 Mon Sep 17 00:00:00 2001 From: samr7 Date: Thu, 11 Oct 2012 20:17:53 -0700 Subject: [PATCH] Vanity pool doesn't accept solutions using POST, despite their documentation, so use GET instead of POST for solutions. Use OPENSSL_free() instead of free() for hex public keys. --- oclvanityminer.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/oclvanityminer.c b/oclvanityminer.c index 7c34a15..096552c 100644 --- a/oclvanityminer.c +++ b/oclvanityminer.c @@ -175,7 +175,7 @@ server_batch_free(pubkeybatch_t *pbatch) if (pbatch->pubkey) EC_POINT_free(pbatch->pubkey); if (pbatch->pubkey_hex) - free((char*)pbatch->pubkey_hex); + OPENSSL_free((char*)pbatch->pubkey_hex); free(pbatch); } @@ -206,12 +206,12 @@ pubkeybatch_avl_search(avl_root_t *rootp, const EC_POINT *pubkey, if (cmpres < 0) { itemp = itemp->ai_right; } else { - free(pubkey_hex); + OPENSSL_free(pubkey_hex); return vp; } } } - free(pubkey_hex); + OPENSSL_free(pubkey_hex); return NULL; } @@ -649,8 +649,7 @@ server_context_submit_solution(server_context_t *ctxp, creq = curl_easy_init(); if (curl_easy_setopt(creq, CURLOPT_URL, urlbuf) || curl_easy_setopt(creq, CURLOPT_VERBOSE, ctxp->verbose > 1) || - curl_easy_setopt(creq, CURLOPT_FOLLOWLOCATION, 1) || - curl_easy_setopt(creq, CURLOPT_POST, 1)) { + curl_easy_setopt(creq, CURLOPT_FOLLOWLOCATION, 1)) { fprintf(stderr, "Failed to set up libcurl\n"); exit(1); }