]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_x509_crt_list_import2 was ignoring the passed flags if all certificates in...
authorTim Kosse <tim.kosse@filezilla-project.org>
Sat, 9 Jul 2016 09:53:52 +0000 (11:53 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 28 Jul 2016 08:49:02 +0000 (10:49 +0200)
lib/x509/x509.c

index fbfe852a7c9b94e72d04b0da23aebc97b5d37146..a781d2e0985927c99ce085df349abe520d38766f 100644 (file)
@@ -3278,7 +3278,7 @@ gnutls_x509_crt_list_import2(gnutls_x509_crt_t ** certs,
 
        ret =
            gnutls_x509_crt_list_import(*certs, &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) {
                *certs =
                    gnutls_realloc_fast(*certs,