aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2006-09-25 06:19:40 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2006-09-25 06:19:40 +0000
commit1c32a71e873624ef67666c023ac99b83de4705c5 (patch)
tree7315a81d30234bd1201799e68716675a15c6c533 /src
parent7f0a14b07f8356c5043b3e573ebd324fac15ddb9 (diff)
downloadstrongswan-1c32a71e873624ef67666c023ac99b83de4705c5.tar.bz2
strongswan-1c32a71e873624ef67666c023ac99b83de4705c5.tar.xz
added ID_ANY check to matches_binary()
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/utils/identification.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c
index e193a3e59..4fbda0afd 100644
--- a/src/libstrongswan/utils/identification.c
+++ b/src/libstrongswan/utils/identification.c
@@ -715,6 +715,11 @@ static bool equals_dn(private_identification_t *this, private_identification_t *
static bool matches_binary(private_identification_t *this, private_identification_t *other,
int *wildcards)
{
+ if (other->type == ID_ANY)
+ {
+ *wildcards = MAX_WILDCARDS;
+ return TRUE;
+ }
*wildcards = 0;
return this->type == other->type && chunk_equals(this->encoded, other->encoded);
}