AppleTLS: Fix session CFRelease stuff

pull/103/head
Nils Maier 2013-07-03 23:00:38 +02:00
parent c6a733378f
commit 59ba3c99f6
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ AppleTLSSession::AppleTLSSession(AppleTLSContext* ctx)
state_ = st_error;
return;
}
std::unique_ptr<void, decltype(&CFRelease)> del_certs(certs, CFRelease);
std::unique_ptr<void, decltype(&CFRelease)> del_certs((void*)certs, CFRelease);
lastError_ = SSLSetCertificate(sslCtx_, certs);
if (lastError_ != noErr) {
A2_LOG_ERROR(fmt("AppleTLS: Failed to set credentials: %s", getLastErrorString().c_str()));