]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
charon-xpc: Properly cast SA identifier to uintptr representation
authorMartin Willi <martin@revosec.ch>
Mon, 28 Oct 2013 13:00:22 +0000 (14:00 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 28 Oct 2013 13:51:28 +0000 (14:51 +0100)
src/frontends/osx/charon-xpc/xpc_channels.c

index fb65b9c398feeb2d23730c5f8f2faaf11201c471..05913a784d28cb539edc04b6bdb7730df00e9e50 100644 (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;