summaryrefslogtreecommitdiff
path: root/src/ne_gnutls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ne_gnutls.c')
-rw-r--r--src/ne_gnutls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ne_gnutls.c b/src/ne_gnutls.c
index a074fbf..f3e825e 100644
--- a/src/ne_gnutls.c
+++ b/src/ne_gnutls.c
@@ -660,7 +660,7 @@ static int provide_client_cert(gnutls_session_t session,
return ret;
}
- *pcert = gnutls_malloc(sizeof *pcert);
+ *pcert = gnutls_calloc(1, sizeof **pcert);
gnutls_pcert_import_x509(*pcert, sess->client_cert->cert.subject, 0);
*pcert_length = 1;
#else /* !HAVE_GNUTLS_CERTIFICATE_SET_RETRIEVE_FUNCTION2 */