diff options
-rw-r--r-- | xbmc/filesystem/CurlFile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xbmc/filesystem/CurlFile.cpp b/xbmc/filesystem/CurlFile.cpp index 102f52ca35..3dc75d6b77 100644 --- a/xbmc/filesystem/CurlFile.cpp +++ b/xbmc/filesystem/CurlFile.cpp @@ -1442,7 +1442,11 @@ int CCurlFile::Stat(const CURL& url, struct __stat64* buffer) { long code; if(g_curlInterface.easy_getinfo(m_state->m_easyHandle, CURLINFO_RESPONSE_CODE, &code) == CURLE_OK && code == 404 ) + { + g_curlInterface.easy_release(&m_state->m_easyHandle, NULL); + errno = ENOENT; return -1; + } } if(result == CURLE_GOT_NOTHING |