diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-04-14 17:34:41 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-04-14 17:34:41 +0000 |
commit | be6258485c1eb223b8cbfdf1cc23403f5c7bcad9 (patch) | |
tree | 4579f6ade0f9492681f726af2048f3d58faf5274 /src/libstrongswan/crypto/crl.c | |
parent | 6598f99af060ddc13566b105657718b1382a4c7d (diff) | |
download | strongswan-be6258485c1eb223b8cbfdf1cc23403f5c7bcad9.tar.bz2 strongswan-be6258485c1eb223b8cbfdf1cc23403f5c7bcad9.tar.xz |
fixed destroy() bug
Diffstat (limited to 'src/libstrongswan/crypto/crl.c')
-rwxr-xr-x | src/libstrongswan/crypto/crl.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libstrongswan/crypto/crl.c b/src/libstrongswan/crypto/crl.c index e2535f7d3..42e5883f6 100755 --- a/src/libstrongswan/crypto/crl.c +++ b/src/libstrongswan/crypto/crl.c @@ -494,14 +494,10 @@ crl_t *crl_create_from_file(const char *filename) { bool pgp = FALSE; chunk_t chunk = chunk_empty; - crl_t *crl = NULL; if (!pem_asn1_load_file(filename, NULL, "crl", &chunk, &pgp)) + { return NULL; - - crl = crl_create_from_chunk(chunk); - - if (crl == NULL) - free(chunk.ptr); - return crl; + } + return crl_create_from_chunk(chunk); } |