diff options
author | Tim Kosse <tim.kosse@filezilla-project.org> | 2016-07-09 12:24:33 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-07-28 10:52:16 +0200 |
commit | 9c6741d096f1069bdc8eec5caff15e794dc4a13f (patch) | |
tree | 159a7a7461e175da12c149d6d5d38f8cd08ec2a6 | |
parent | 51260a9ccd192626b56c52842384a5af86f184a9 (diff) | |
download | gnutls-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.c | 2 |
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, |