From: Nikos Mavrogiannopoulos Date: Wed, 2 Feb 2011 08:17:08 +0000 (+0100) Subject: Set memory to zero on allocation. X-Git-Tag: gnutls_2_99_0~342 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=001a6c4027d032e0ca2b75f2c2624304b0ab2b02;p=thirdparty%2Fgnutls.git Set memory to zero on allocation. --- diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c index 7ddf433e9b..98d3a958c5 100644 --- a/lib/x509/verify-high.c +++ b/lib/x509/verify-high.c @@ -74,7 +74,7 @@ gnutls_x509_trust_list_init (gnutls_x509_trust_list_t * list, unsigned int size) if (size == 0) size = DEFAULT_SIZE; tmp->size = size; - tmp->node = gnutls_malloc(tmp->size * sizeof(tmp->node[0])); + tmp->node = gnutls_calloc(1, tmp->size * sizeof(tmp->node[0])); if (tmp->node == NULL) { gnutls_assert();