summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-09-14 16:32:05 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-09-14 16:44:18 +0200
commit74856e90221864b718db3f480c2eb2dbb26dffc7 (patch)
tree74505b5b4043310ec8d2955b993b9d852c2c2c31
parent14a1e6cba4d9ff997307e1d1b4c46f13c8970855 (diff)
downloadgnutls-74856e90221864b718db3f480c2eb2dbb26dffc7.tar.gz
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 <nmav@redhat.com>
-rw-r--r--lib/x509/verify-high.c2
1 files changed, 1 insertions, 1 deletions
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();