diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2018-11-14 16:19:40 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2018-11-14 16:19:40 +0000 |
commit | f58affc2a97ad9d2ebe6ce90b3a0f0abc3e69459 (patch) | |
tree | 5d67d2d0c5d6e002d4c434d3f2f45838703b40f9 | |
parent | ef6538f88bf4c08c8d9bfd78de1870e41c8f7c3a (diff) | |
download | neon-f58affc2a97ad9d2ebe6ce90b3a0f0abc3e69459.tar.gz |
* src/ne_gnutls.c (provide_client_cert): Fix allocation size,
submitted by Henrik Holst.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2042 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
-rw-r--r-- | src/ne_gnutls.c | 2 |
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 */ |