diff --git a/ByondPOST.dll b/ByondPOST.dll index b33f70b1ec8..93dff79d7f6 100644 Binary files a/ByondPOST.dll and b/ByondPOST.dll differ diff --git a/lib/ByondPostDLL/ByondPostDLL.cpp b/lib/ByondPostDLL/ByondPostDLL.cpp index 9a79d934529..7e70dc7900e 100644 --- a/lib/ByondPostDLL/ByondPostDLL.cpp +++ b/lib/ByondPostDLL/ByondPostDLL.cpp @@ -33,7 +33,7 @@ extern "C" __declspec(dllexport) char *send_post_request(int argc, char *argv[]) } // Initialize variables. - static char return_value[32]; + static char return_value[33] = {0}; long http_code = 0; CURLcode res; struct curl_slist *chunk = NULL; @@ -44,6 +44,7 @@ extern "C" __declspec(dllexport) char *send_post_request(int argc, char *argv[]) } // Set curl options. + curl_easy_setopt(curl, CURLOPT_TIMEOUT, 2L); curl_easy_setopt(curl, CURLOPT_URL, argv[0]); curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);