summaryrefslogtreecommitdiff
path: root/lib/x509/verify-high.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2022-01-18 06:59:08 +0000
committerDaiki Ueno <ueno@gnu.org>2022-01-18 06:59:08 +0000
commitf213ec01faa8fd7e7478f85a76352be875f53e4b (patch)
tree3e500cad524709fb7a10dfd76e875dac0d43762c /lib/x509/verify-high.c
parent34c6c97bd77975b96597e1e4c03e4d0465dda22a (diff)
parent68c744abfd4aad720a7ae93b31674ee7a267bad1 (diff)
downloadgnutls-f213ec01faa8fd7e7478f85a76352be875f53e4b.tar.gz
Merge branch 'wip/dueno/release-3.7.3' into 'master'3.7.3
Release 3.7.3 See merge request gnutls/gnutls!1517
Diffstat (limited to 'lib/x509/verify-high.c')
-rw-r--r--lib/x509/verify-high.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c
index ab8e006ca7..5698d4f372 100644
--- a/lib/x509/verify-high.c
+++ b/lib/x509/verify-high.c
@@ -1102,7 +1102,8 @@ int trust_list_get_issuer_by_dn(gnutls_x509_trust_list_t list,
* gnutls_x509_trust_list_get_issuer:
* @list: The list
* @cert: is the certificate to find issuer for
- * @issuer: Will hold the issuer if any. Should be treated as constant.
+ * @issuer: Will hold the issuer if any. Should be treated as constant
+ * unless %GNUTLS_TL_GET_COPY is set in @flags.
* @flags: flags from %gnutls_trust_list_flags_t (%GNUTLS_TL_GET_COPY is applicable)
*
* This function will find the issuer of the given certificate.
@@ -1521,7 +1522,8 @@ gnutls_x509_trust_list_verify_crt2(gnutls_x509_trust_list_t list,
if (gnutls_x509_trust_list_get_issuer(list,
cert_list[i - 1],
&issuer,
- 0) == 0) {
+ GNUTLS_TL_GET_COPY) == 0) {
+ gnutls_x509_crt_deinit(issuer);
cert_list_size = i;
break;
}