diff options
Diffstat (limited to 'lib/pkcs11_write.c')
-rw-r--r-- | lib/pkcs11_write.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pkcs11_write.c b/lib/pkcs11_write.c index ff5320514e..9bc211d20b 100644 --- a/lib/pkcs11_write.c +++ b/lib/pkcs11_write.c @@ -83,6 +83,7 @@ gnutls_pkcs11_copy_x509_crt(const char *token_url, return ret; } + der_size = 0; ret = gnutls_x509_crt_export(crt, GNUTLS_X509_FMT_DER, NULL, &der_size); |