+2012-08-28 Tim Ruehsen <tim.ruehsen@gmx.de>
+
+ * gnutls.c (ssl_check_certificate): deinit gnutls_x509_crt_t.
+
2012-07-07 Giuseppe Scrivano <gscrivano@gnu.org>
* html-url.c (cleanup_html_url): Remove "static" modifier.
{
logprintf (LOG_NOTQUIET, _("No certificate found\n"));
success = false;
- goto out;
+ goto crt_deinit;
}
err = gnutls_x509_crt_import (cert, cert_list, GNUTLS_X509_FMT_DER);
if (err < 0)
logprintf (LOG_NOTQUIET, _("Error parsing certificate: %s\n"),
gnutls_strerror (err));
success = false;
- goto out;
+ goto crt_deinit;
}
if (now < gnutls_x509_crt_get_activation_time (cert))
{
quote (host));
success = false;
}
+ crt_deinit:
gnutls_x509_crt_deinit (cert);
}