summaryrefslogtreecommitdiff
path: root/lib/x509/verify-high.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-05-02 13:12:00 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-05-02 15:40:18 +0200
commit01db1537f116b7fd24fa57a51fc2ca571cd0e7ca (patch)
tree3d55513a892df8e51b0d275cc365ebda8f900954 /lib/x509/verify-high.c
parentcf73cf2e8d8045ea480de0f667668ee3464d0546 (diff)
downloadgnutls-01db1537f116b7fd24fa57a51fc2ca571cd0e7ca.tar.gz
_gnutls_x509_crt_cpy: optimized and simplified
Diffstat (limited to 'lib/x509/verify-high.c')
-rw-r--r--lib/x509/verify-high.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c
index 21f4b42a34..7883337157 100644
--- a/lib/x509/verify-high.c
+++ b/lib/x509/verify-high.c
@@ -447,7 +447,7 @@ gnutls_x509_trust_list_iter_get_ca(gnutls_x509_trust_list_t list,
if (ret < 0)
return gnutls_assert_val(ret);
- ret = _gnutls_x509_crt_cpy(*crt, list->node[(*iter)->node_index].trusted_cas[(*iter)->ca_index]);
+ ret = _gnutls_x509_crt_cpy(*crt, list->node[(*iter)->node_index].trusted_cas[(*iter)->ca_index], 0);
if (ret < 0) {
gnutls_x509_crt_deinit(*crt);
return gnutls_assert_val(ret);
@@ -528,7 +528,7 @@ int ret;
return NULL;
}
- ret = _gnutls_x509_crt_cpy(dst, src);
+ ret = _gnutls_x509_crt_cpy(dst, src, 0);
if (ret < 0) {
gnutls_x509_crt_deinit(dst);
gnutls_assert();