From 2d00984d739520c724cd363bf3f1d7bf843b540e Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 7 Jul 2009 13:42:22 +0200 Subject: [PATCH] added missing equals() method assignment for ID_ANY identities --- src/libstrongswan/utils/identification.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c index 51b802b3f..358cfa9e1 100644 --- a/src/libstrongswan/utils/identification.c +++ b/src/libstrongswan/utils/identification.c @@ -533,7 +533,7 @@ static bool equals_binary(private_identification_t *this, private_identification } return chunk_equals(this->encoded, other->encoded); } - return FALSE; + return FALSE; } /** @@ -868,6 +868,7 @@ static private_identification_t *identification_create(id_type_t type) { case ID_ANY: this->public.matches = (id_match_t (*)(identification_t*,identification_t*))matches_any; + this->public.equals = (bool (*) (identification_t*,identification_t*))equals_binary; this->public.contains_wildcards = (bool (*) (identification_t *this))return_true; break; case ID_FQDN: