summaryrefslogtreecommitdiff
path: root/lib/gnutls_x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gnutls_x509.c')
-rw-r--r--lib/gnutls_x509.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gnutls_x509.c b/lib/gnutls_x509.c
index c8d204573a..5d7d5484a3 100644
--- a/lib/gnutls_x509.c
+++ b/lib/gnutls_x509.c
@@ -964,9 +964,7 @@ opaque *pdata;
for (i = 0; i < res->x509_ncas; i++) {
ret = _gnutls_x509_crt_get_raw_issuer_dn( res->x509_ca_list[i], &tmp);
if (ret < 0) {
- gnutls_free(res->x509_rdn_sequence.data);
- res->x509_rdn_sequence.size = 0;
- res->x509_rdn_sequence.data = NULL;
+ _gnutls_free_datum( &res->x509_rdn_sequence);
gnutls_assert();
return ret;
}