]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_x509_crl_list_import2 was ignoring the passed flags if all CTLs in the list...
authorTim Kosse <tim.kosse@filezilla-project.org>
Sat, 9 Jul 2016 10:24:33 +0000 (12:24 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 28 Jul 2016 08:52:16 +0000 (10:52 +0200)
lib/x509/crl.c

index f42271bd84e1220dc4592e81dda475684466de62..ebda949fdefaf9b0a91eec47f6127c6bc8ec18af 100644 (file)
@@ -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,