charon-xpc: Properly cast SA identifier to uintptr representation

This commit is contained in:
Martin Willi
2013-10-28 14:51:28 +01:00
parent 3e40dbb128
commit 888d8d73ab
+1 -1
View File
@@ -479,7 +479,7 @@ static shared_key_t* password_cb(private_xpc_channels_t *this,
{
sa = ike_sa->get_unique_id(ike_sa);
this->lock->read_lock(this->lock);
entry = this->channels->get(this->channels, (void*)sa);
entry = this->channels->get(this->channels, (void*)(uintptr_t)sa);
if (entry && !entry->passworded)
{
entry->passworded = TRUE;