Change lockdown API use in RNBSocket::ConnectToService.

<rdar://problem/10800927> 

llvm-svn: 156883
This commit is contained in:
Jason Molenda 2012-05-16 00:36:21 +00:00
parent e7ae16fa83
commit 94379541e2
1 changed files with 3 additions and 3 deletions

View File

@ -189,10 +189,10 @@ RNBSocket::ConnectToService()
// Disconnect from any previous connections
Disconnect(false);
m_fd = ::lockdown_checkin (NULL, NULL);
if (m_fd == -1)
if (::lockdown_secure_checkin (&m_fd, NULL, NULL, NULL) != kLDESuccess)
{
DNBLogThreadedIf(LOG_RNB_COMM, "::lockdown_checkin(NULL, NULL) failed");
DNBLogThreadedIf(LOG_RNB_COMM, "::lockdown_secure_checkin(&m_fd, NULL, NULL, NULL) failed");
m_fd = -1;
return rnb_not_connected;
}
m_fd_from_lockdown = true;