diff --git a/src/eve.cc b/src/eve.cc index 2787aa57..df3b1ae7 100644 --- a/src/eve.cc +++ b/src/eve.cc @@ -186,7 +186,9 @@ static char *getXmlFromAPI(const char *apiKeyID, const char *apiVCode, const cha curl_easy_setopt(curl_handle, CURLOPT_URL, real_url.c_str()); - if ((rc = curl_easy_perform(curl_handle)) != CURLE_OK) { + rc = curl_easy_perform(curl_handle); + + if (chr.data == NULL) { return NULL; }