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 10:52:16 +0200
commit9c6741d096f1069bdc8eec5caff15e794dc4a13f (patch)
tree159a7a7461e175da12c149d6d5d38f8cd08ec2a6
parent51260a9ccd192626b56c52842384a5af86f184a9 (diff)
downloadgnutls-9c6741d096f1069bdc8eec5caff15e794dc4a13f.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 f42271bd84..ebda949fde 100644
--- a/lib/x509/crl.c
+++ b/lib/x509/crl.c
@@ -1261,7 +1261,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,