summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-04-28 15:00:21 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-04-28 15:00:21 +0200
commit61831f071e7fdee001f5042cd06c3be269aa39d9 (patch)
treea9515e92fc4257b0bb007667a045b8af3a8104da /lib
parent1806b2669c619d2ac1aa1f8508dae7d43c0583e7 (diff)
downloadgnutls-61831f071e7fdee001f5042cd06c3be269aa39d9.tar.gz
initialize the size value
Diffstat (limited to 'lib')
-rw-r--r--lib/pkcs11_write.c1
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);