unsigned int init = 1024;
int ret;
- *crls = gnutls_malloc(sizeof(gnutls_x509_crl_t*)*init);
+ *crls = gnutls_malloc(sizeof(gnutls_x509_crl_t)*init);
if (*crls == NULL)
{
gnutls_assert();
ret = gnutls_x509_crl_list_import(*crls, &init, data, format, GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED);
if (ret == GNUTLS_E_SHORT_MEMORY_BUFFER)
{
- *crls = gnutls_realloc_fast(*crls, sizeof(gnutls_x509_crl_t*)*init);
+ *crls = gnutls_realloc_fast(*crls, sizeof(gnutls_x509_crl_t)*init);
if (*crls == NULL)
{
gnutls_assert();
unsigned int init = 1024;
int ret;
- *certs = gnutls_malloc(sizeof(gnutls_x509_crt_t*)*init);
+ *certs = gnutls_malloc(sizeof(gnutls_x509_crt_t)*init);
if (*certs == NULL)
{
gnutls_assert();
ret = gnutls_x509_crt_list_import(*certs, &init, data, format, GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED);
if (ret == GNUTLS_E_SHORT_MEMORY_BUFFER)
{
- *certs = gnutls_realloc_fast(*certs, sizeof(gnutls_x509_crt_t*)*init);
+ *certs = gnutls_realloc_fast(*certs, sizeof(gnutls_x509_crt_t)*init);
if (*certs == NULL)
{
gnutls_assert();