diff options
Diffstat (limited to 'src/daemon/https/tls/gnutls_x509.c')
-rw-r--r-- | src/daemon/https/tls/gnutls_x509.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/daemon/https/tls/gnutls_x509.c b/src/daemon/https/tls/gnutls_x509.c index 06ee8635..a326ac01 100644 --- a/src/daemon/https/tls/gnutls_x509.c +++ b/src/daemon/https/tls/gnutls_x509.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <auth_cert.h> | 29 | #include <auth_cert.h> |
30 | #include "gnutls_dh.h" | 30 | #include "gnutls_dh.h" |
31 | #include "gnutls_num.h" | 31 | #include "gnutls_num.h" |
32 | #include "libtasn1.h" | ||
33 | #include "gnutls_datum.h" | 32 | #include "gnutls_datum.h" |
34 | #include <gnutls_pk.h> | 33 | #include <gnutls_pk.h> |
35 | #include <gnutls_algorithms.h> | 34 | #include <gnutls_algorithms.h> |
@@ -141,8 +140,7 @@ MHD__gnutls_x509_cert_verify_peers (MHD_gtls_session_t session, | |||
141 | */ | 140 | */ |
142 | peer_certificate_list_size = info->ncerts; | 141 | peer_certificate_list_size = info->ncerts; |
143 | peer_certificate_list = | 142 | peer_certificate_list = |
144 | MHD_gnutls_calloc (1, | 143 | MHD_gnutls_calloc (peer_certificate_list_size, |
145 | peer_certificate_list_size * | ||
146 | sizeof (MHD_gnutls_x509_crt_t)); | 144 | sizeof (MHD_gnutls_x509_crt_t)); |
147 | if (peer_certificate_list == NULL) | 145 | if (peer_certificate_list == NULL) |
148 | { | 146 | { |