From: Steve Brokenshire Date: Thu, 3 Mar 2016 03:48:57 +0000 (+0000) Subject: Set the connection results after attempting to fetch data in GetServerSupport. X-Git-Tag: release-0.02~311 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=7f11c54cda362572e6d7bfe277d5ecd41de84532;p=xestiacalendar%2F.git Set the connection results after attempting to fetch data in GetServerSupport. --- diff --git a/source/objects/CalDAV/CalDAV.cpp b/source/objects/CalDAV/CalDAV.cpp index bb45429..6e1d0e6 100644 --- a/source/objects/CalDAV/CalDAV.cpp +++ b/source/objects/CalDAV/CalDAV.cpp @@ -172,6 +172,16 @@ CalDAVServerSupport CalDAV::GetServerSupport(){ CURLcode ServerResult = curl_easy_perform(ConnectionHandle); + // Set the results. + + if (ServerResult == CURLE_OK){ + ConnectionServerResult.Result = CALDAVQUERYRESULT_OK; + } else { + ConnectionServerResult.Result = CALDAVQUERYRESULT_SERVERERROR; + } + ConnectionServerResult.Code = ServerResult; + curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ConnectionServerResult.HTTPCode); + if (ServerResult != CURLE_OK){ return ServerStatus; }