]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
use traffic_selector_t object to represent ipAddrBlocks
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 20 Dec 2009 14:15:02 +0000 (15:15 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 20 Dec 2009 14:15:02 +0000 (15:15 +0100)
src/libstrongswan/plugins/x509/x509_cert.c

index 8060e00c67907d20850cdf557cf8da18ce9f97d3..623a26803eb4bb2fa9d277e4120e98411368f5af 100644 (file)
@@ -37,6 +37,7 @@
 #include <credentials/keys/private_key.h>
 #include <utils/linked_list.h>
 #include <utils/identification.h>
+#include <selectors/traffic_selector.h>
 
 /**
  * Different kinds of generalNames
@@ -1243,7 +1244,7 @@ static void destroy(private_x509_cert_t *this)
                                                                        offsetof(identification_t, destroy));
                this->crl_uris->destroy_function(this->crl_uris, free);
                this->ocsp_uris->destroy_function(this->ocsp_uris, free);
-               this->ipAddrBlocks->destroy_function(this->ipAddrBlocks, free);
+               this->ipAddrBlocks->destroy_offset(this->ipAddrBlocks, offsetof(traffic_selector_t, destroy));
                DESTROY_IF(this->issuer);
                DESTROY_IF(this->subject);
                DESTROY_IF(this->public_key);