summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-10-23 08:47:27 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-10-23 08:50:35 +0200
commitb02a1f8c5cfcb6926662046c59b7290d18dd8f3f (patch)
treea3589d375da5cea5f1257974905bff8883f29f7c
parentbf04fc8bcfe2863f81758bb32c55104b2283d25e (diff)
downloadgnutls-b02a1f8c5cfcb6926662046c59b7290d18dd8f3f.tar.gz
corrected bug in gnutls_x509_trust_list_get_issuer() when used without the GNUTLS_TL_GET_COPY flag
-rw-r--r--lib/x509/verify-high.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c
index d570f2e0ef..784aa80932 100644
--- a/lib/x509/verify-high.c
+++ b/lib/x509/verify-high.c
@@ -766,6 +766,7 @@ int gnutls_x509_trust_list_get_issuer(gnutls_x509_trust_list_t list,
gnutls_x509_crt_deinit(crt);
return gnutls_assert_val(ret);
}
+ *issuer = crt;
return ret;
}
}