aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-05-23 15:43:42 +0000
committerMartin Willi <martin@strongswan.org>2008-05-23 15:43:42 +0000
commitde3d65a1322eae06381fb4e27dbdc216a8f60618 (patch)
treeef782a6b6646f22b402033f99fa527406a3d3ca7
parent0672aa7b0ea3b2220862dd43baee7283985237c6 (diff)
downloadstrongswan-de3d65a1322eae06381fb4e27dbdc216a8f60618.tar.bz2
strongswan-de3d65a1322eae06381fb4e27dbdc216a8f60618.tar.xz
filtering out non matching path probing pairs explicitly
-rw-r--r--src/charon/sa/tasks/ike_mobike.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/charon/sa/tasks/ike_mobike.c b/src/charon/sa/tasks/ike_mobike.c
index c27f6143b..da292d561 100644
--- a/src/charon/sa/tasks/ike_mobike.c
+++ b/src/charon/sa/tasks/ike_mobike.c
@@ -281,6 +281,11 @@ static void transmit(private_ike_mobike_t *this, packet_t *packet)
charon->kernel_interface, other);
if (me)
{
+ if (me->get_family(me) != other->get_family(other))
+ {
+ me->destroy(me);
+ continue;
+ }
/* reuse port for an active address, 4500 otherwise */
me->set_port(me, me->ip_equals(me, me_old) ?
me_old->get_port(me_old) : IKEV2_NATT_PORT);