aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-09-25 20:07:04 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-09-25 20:07:04 +0000
commit8129cc848a3c12805546484d7f28acf221d0a35e (patch)
tree02bb9d752d1a6e775917ee5559253aa9acba74b9
parentd9d69536b0ecdb298cc40acf81d42c1a09e69a05 (diff)
downloadstrongswan-8129cc848a3c12805546484d7f28acf221d0a35e.tar.bz2
strongswan-8129cc848a3c12805546484d7f28acf221d0a35e.tar.xz
fixed bug occuring with multiple queued Quick Modes and NAT Traversal
-rw-r--r--src/pluto/connections.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pluto/connections.c b/src/pluto/connections.c
index 6a907263e..40bdcd82b 100644
--- a/src/pluto/connections.c
+++ b/src/pluto/connections.c
@@ -3028,11 +3028,10 @@ ISAKMP_SA_established(struct connection *c, so_serial_t serial)
{
struct connection *next = d->ac_next; /* might move underneath us */
- if (d->kind >= CK_PERMANENT
+ if (d->kind >= CK_PERMANENT
&& same_id(&c->spd.this.id, &d->spd.this.id)
&& same_id(&c->spd.that.id, &d->spd.that.id)
- && (!sameaddr(&c->spd.that.host_addr, &d->spd.that.host_addr) ||
- (c->spd.that.host_port != d->spd.that.host_port)))
+ && !sameaddr(&c->spd.that.host_addr, &d->spd.that.host_addr))
{
release_connection(d, FALSE);
}