From: Andreas Steffen Date: Tue, 18 May 2010 20:41:22 +0000 (+0200) Subject: register virtual IPs under the XAUTH identity X-Git-Tag: 4.4.1~246 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab0ecb7dd9108cb5ed4e9a4e4b53a6a6f88efae2;p=thirdparty%2Fstrongswan.git register virtual IPs under the XAUTH identity --- diff --git a/src/pluto/modecfg.c b/src/pluto/modecfg.c index bd046b30b1..f4c33e83c0 100644 --- a/src/pluto/modecfg.c +++ b/src/pluto/modecfg.c @@ -146,9 +146,11 @@ static void get_attributes(connection_t *c, linked_list_t *ca_list) { if (c->spd.that.pool) { + identification_t *client_id; + + client_id = (c->xauth_identity) ? c->xauth_identity : c->spd.that.id; vip = hydra->attributes->acquire_address(hydra->attributes, - c->spd.that.pool, c->spd.that.id, - requested_vip); + c->spd.that.pool, client_id, requested_vip); if (vip) { c->spd.that.host_srcip->destroy(c->spd.that.host_srcip);