use cert->equals() to filter out equal certificates in seperate instances
authorMartin Willi <martin@strongswan.org>
Mon, 7 Apr 2008 08:48:08 +0000 (08:48 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 7 Apr 2008 08:48:08 +0000 (08:48 -0000)
src/charon/plugins/stroke/stroke_list.c

index 302ff24..fcb0a52 100644 (file)
@@ -296,7 +296,7 @@ static linked_list_t* create_unique_cert_list(certificate_type_t type)
                while (iterator->iterate(iterator, (void**)&list_cert))
                {
                        /* exit if we have a duplicate? */
-                       if (list_cert == cert)
+                       if (list_cert->equals(list_cert, cert))
                        {
                                last = FALSE;
                                break;