aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-08-17 07:21:26 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-08-17 07:21:26 +0000
commit2133593696afd42ea70c2d76b8bbaf4f4b5afa30 (patch)
tree65c777f9ce1a78aac2ac1e6e0ca64a77b9e93e76
parent0f9f19f54e90d8999ef24bf8084b216fc21a55d2 (diff)
downloadstrongswan-2133593696afd42ea70c2d76b8bbaf4f4b5afa30.tar.bz2
strongswan-2133593696afd42ea70c2d76b8bbaf4f4b5afa30.tar.xz
matching_request instead of matching_trust must go into the metric
-rw-r--r--src/pluto/connections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pluto/connections.c b/src/pluto/connections.c
index 34764ebd6..f4c712e03 100644
--- a/src/pluto/connections.c
+++ b/src/pluto/connections.c
@@ -3352,7 +3352,7 @@ refine_host_connection(const struct state *st, const struct id *peer_id
, d->spd.this.ca, &our_pathlen);
bool match = matching_id && matching_auth && matching_trust;
- int prio = (MAX_WILDCARDS + 1) * !matching_trust + wildcards;
+ int prio = (MAX_WILDCARDS + 1) * !matching_request + wildcards;
prio = (MAX_CA_PATH_LEN + 1) * prio + peer_pathlen;
prio = (MAX_CA_PATH_LEN + 1) * prio + our_pathlen;