From: Martin Willi Date: Mon, 28 Oct 2013 13:00:22 +0000 (+0100) Subject: charon-xpc: Properly cast SA identifier to uintptr representation X-Git-Tag: 5.1.1~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=888d8d73abe1eca48a853e218cb8ee1c344a7029;p=thirdparty%2Fstrongswan.git charon-xpc: Properly cast SA identifier to uintptr representation --- diff --git a/src/frontends/osx/charon-xpc/xpc_channels.c b/src/frontends/osx/charon-xpc/xpc_channels.c index fb65b9c398..05913a784d 100644 --- a/src/frontends/osx/charon-xpc/xpc_channels.c +++ b/src/frontends/osx/charon-xpc/xpc_channels.c @@ -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;