From 74856e90221864b718db3f480c2eb2dbb26dffc7 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 14 Sep 2018 16:32:05 +0200 Subject: Fix variable used in reallocation This corrects the variable name used in the sizeof argument for realloc. This does not alter the actual allocation size, but rather it fixes a logic error. Relates: #554 Signed-off-by: Nikos Mavrogiannopoulos --- lib/x509/verify-high.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c index 4e2faa5a86..768e697451 100644 --- a/lib/x509/verify-high.c +++ b/lib/x509/verify-high.c @@ -767,7 +767,7 @@ gnutls_x509_trust_list_add_crls(gnutls_x509_trust_list_t list, (list->node[hash].crl_size + 1) * sizeof(list->node[hash]. - trusted_cas[0])); + crls[0])); if (tmp == NULL) { ret = i; gnutls_assert(); -- cgit v1.2.1