diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-12 23:03:32 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-12 23:03:32 +0200 |
commit | 7b3839b4fff469a341fbbc125fe72468af9b7df4 (patch) | |
tree | 374f8d1ee1b21d5394ea9042cd57322913c9ece1 /tests | |
parent | f558716ec2fe876b8ba85b9c3093aedfd6800243 (diff) | |
download | gnutls-7b3839b4fff469a341fbbc125fe72468af9b7df4.tar.gz |
When requested gnutls_x509_trust_list_deinit() will deinitialized all certs (including the named)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/x509cert-tl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/x509cert-tl.c b/tests/x509cert-tl.c index 0c432723ef..c2ff767ee9 100644 --- a/tests/x509cert-tl.c +++ b/tests/x509cert-tl.c @@ -255,9 +255,7 @@ doit (void) if (ret < 1) fail("gnutls_x509_trust_list_add_trust_mem: %d\n", __LINE__); - gnutls_x509_crt_deinit(ca_crt); - gnutls_x509_crt_deinit(server_crt); - gnutls_x509_trust_list_deinit(tl, 0); + gnutls_x509_trust_list_deinit(tl, 1); gnutls_global_deinit(); |