diff options
author | Martin Willi <martin@strongswan.org> | 2008-05-23 15:43:42 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-05-23 15:43:42 +0000 |
commit | de3d65a1322eae06381fb4e27dbdc216a8f60618 (patch) | |
tree | ef782a6b6646f22b402033f99fa527406a3d3ca7 | |
parent | 0672aa7b0ea3b2220862dd43baee7283985237c6 (diff) | |
download | strongswan-de3d65a1322eae06381fb4e27dbdc216a8f60618.tar.bz2 strongswan-de3d65a1322eae06381fb4e27dbdc216a8f60618.tar.xz |
filtering out non matching path probing pairs explicitly
-rw-r--r-- | src/charon/sa/tasks/ike_mobike.c | 5 |
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); |