summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Kosse <tim.kosse@filezilla-project.org>2016-07-09 12:24:33 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-07-28 13:55:49 +0200
commit74a7e86660740ca5ee7af77c37697190a8821855 (patch)
treea3e7698deda7693f6dcad2c9989184618ec9b6dd
parenta285f2a2bfade7466e462d6d583d60d737f00d75 (diff)
downloadgnutls-74a7e86660740ca5ee7af77c37697190a8821855.tar.gz
gnutls_x509_crl_list_import2 was ignoring the passed flags if all CTLs in the list fit within the initially allocated memory.
-rw-r--r--lib/x509/crl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/crl.c b/lib/x509/crl.c
index d658e966e7..568b2feddd 100644
--- a/lib/x509/crl.c
+++ b/lib/x509/crl.c
@@ -1221,7 +1221,7 @@ gnutls_x509_crl_list_import2(gnutls_x509_crl_t ** crls,
ret =
gnutls_x509_crl_list_import(*crls, &init, data, format,
- GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED);
+ flags | GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED);
if (ret == GNUTLS_E_SHORT_MEMORY_BUFFER) {
*crls =
gnutls_realloc_fast(*crls,