Only accept pointers to valid types for getinfo().

This commit is contained in:
Aleric Inglewood
2012-08-12 03:38:45 +02:00
parent 164799e4c4
commit 2fbe7ab6ce
2 changed files with 15 additions and 5 deletions

View File

@@ -657,7 +657,7 @@ void CurlEasyHandle::setErrorBuffer(void)
}
}
CURLcode CurlEasyHandle::getinfo(CURLINFO info, void* data)
CURLcode CurlEasyHandle::getinfo_priv(CURLINFO info, void* data)
{
setErrorBuffer();
return check_easy_code(curl_easy_getinfo(mEasyHandle, info, data));