aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-02-24 10:07:47 +0000
committerMartin Willi <martin@revosec.ch>2010-02-26 11:44:34 +0100
commitaf2c43fdc7a977846290e2132fcea1926b0332cf (patch)
treefcb22f783b41e2983d1e8720557e6733a238a120
parent9ed1bb4842af89b09c3617f1d1f25718b891209a (diff)
downloadstrongswan-af2c43fdc7a977846290e2132fcea1926b0332cf.tar.bz2
strongswan-af2c43fdc7a977846290e2132fcea1926b0332cf.tar.xz
Include ports in ike_cfg equality check
-rw-r--r--src/charon/config/ike_cfg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/charon/config/ike_cfg.c b/src/charon/config/ike_cfg.c
index b486d576f..89dcd8022 100644
--- a/src/charon/config/ike_cfg.c
+++ b/src/charon/config/ike_cfg.c
@@ -231,7 +231,9 @@ METHOD(ike_cfg_t, equals, bool,
this->certreq == other->certreq &&
this->force_encap == other->force_encap &&
streq(this->me, other->me) &&
- streq(this->other, other->other));
+ streq(this->other, other->other) &&
+ this->my_port == other->my_port &&
+ this->other_port == other->other_port);
}
METHOD(ike_cfg_t, get_ref, ike_cfg_t*,