aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-12-20 15:15:02 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-12-20 15:15:02 +0100
commitf3e366a9a0cacef2acf9c7e3411b958435de6a08 (patch)
tree418775b8e8b3ec4f6e6f6ca78e12581731eb1f3b /src
parent1125a0be8189876d0b60fab256cc0111cc3e51f2 (diff)
downloadstrongswan-f3e366a9a0cacef2acf9c7e3411b958435de6a08.tar.bz2
strongswan-f3e366a9a0cacef2acf9c7e3411b958435de6a08.tar.xz
use traffic_selector_t object to represent ipAddrBlocks
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/plugins/x509/x509_cert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/x509/x509_cert.c b/src/libstrongswan/plugins/x509/x509_cert.c
index 8060e00c6..623a26803 100644
--- a/src/libstrongswan/plugins/x509/x509_cert.c
+++ b/src/libstrongswan/plugins/x509/x509_cert.c
@@ -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);