diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2006-11-28 16:01:15 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2006-11-28 16:01:15 +0000 |
commit | dba926e623944a4d520d3a546b974e9663420cb4 (patch) | |
tree | a1536ebd6457f56602e2c17328b7c0f7b0cddb38 /src/pluto/ipsec_doi.c | |
parent | df85984570323ff0393c8151aa702df25208befb (diff) | |
download | strongswan-dba926e623944a4d520d3a546b974e9663420cb4.tar.bz2 strongswan-dba926e623944a4d520d3a546b974e9663420cb4.tar.xz |
fixed case with wildcard peer ID and static peer address
Diffstat (limited to 'src/pluto/ipsec_doi.c')
-rw-r--r-- | src/pluto/ipsec_doi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pluto/ipsec_doi.c b/src/pluto/ipsec_doi.c index be5a7ade8..57b3161ff 100644 --- a/src/pluto/ipsec_doi.c +++ b/src/pluto/ipsec_doi.c @@ -3048,6 +3048,13 @@ main_inI1_outR1(struct msg_digest *md) c = rw_instantiate(c, &md->sender, md->sender_port, NULL, NULL); } } + else if (c->kind == CK_TEMPLATE) + { + /* Create an instance + * This is a rare case: wildcard peer ID but static peer IP address + */ + c = rw_instantiate(c, &md->sender, md->sender_port, NULL, &c->spd.that.id); + } /* Set up state */ md->st = st = new_state(); |