aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-04-11 07:43:23 +0000
committerMartin Willi <martin@strongswan.org>2007-04-11 07:43:23 +0000
commitf925b42a5d6d9e993f2de577bb3634dc69942fe0 (patch)
tree35aa72d3433095c9097ad639b0fc2e97bcbd6a2f
parent3b138b84222abd682d249cccbe2a69b4b12ff4c7 (diff)
downloadstrongswan-f925b42a5d6d9e993f2de577bb3634dc69942fe0.tar.bz2
strongswan-f925b42a5d6d9e993f2de577bb3634dc69942fe0.tar.xz
two %any IDs are equal
-rw-r--r--src/libstrongswan/utils/identification.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c
index 341af39c0..8c2f4f3c8 100644
--- a/src/libstrongswan/utils/identification.c
+++ b/src/libstrongswan/utils/identification.c
@@ -738,8 +738,15 @@ static bool contains_wildcards(private_identification_t *this)
*/
static bool equals_binary(private_identification_t *this, private_identification_t *other)
{
- return this->type == other->type &&
- chunk_equals(this->encoded, other->encoded);
+ if (this->type == other->type)
+ {
+ if (this->type == ID_ANY)
+ {
+ return TRUE;
+ }
+ return chunk_equals(this->encoded, other->encoded);
+ }
+ return FALSE;
}
/**