From 65a1aae629949dcb0b91ab6298fc34c60f09d8ac Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Sun, 5 Aug 2012 18:55:27 +0200 Subject: [PATCH] Bug fix curl_easy_setopt expects a long int. Before this patch, uninitialized memory was read, leading to extreme long time out, instead of the intended disabled time out (so, in practise this patch has little effect). This bug was discovered with the previous commit. --- indra/newview/llxmlrpctransaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llxmlrpctransaction.cpp b/indra/newview/llxmlrpctransaction.cpp index b160e2c33..9d729b8da 100644 --- a/indra/newview/llxmlrpctransaction.cpp +++ b/indra/newview/llxmlrpctransaction.cpp @@ -250,7 +250,7 @@ void LLXMLRPCTransaction::Impl::init(XMLRPC_REQUEST request, bool useGzip) /* Setting the DNS cache timeout to -1 disables it completely. This might help with bug #503 */ - curlEasyRequest_w->setopt(CURLOPT_DNS_CACHE_TIMEOUT, -1); + curlEasyRequest_w->setopt(CURLOPT_DNS_CACHE_TIMEOUT, -1L); curlEasyRequest_w->addHeader("Content-Type: text/xml");