GnuTLS handles these just like a traditional free() function and copes
if they're NULL. We don't have to check.
Signed-off-by: Tom Carroll <incentivedesign@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
static void free_gtls_cert_info(struct gtls_cert_info *gci)
{
- if (gci->crl)
- gnutls_x509_crl_deinit(gci->crl);
- if (gci->pkey)
- gnutls_privkey_deinit(gci->pkey);
+ gnutls_x509_crl_deinit(gci->crl);
+ gnutls_privkey_deinit(gci->pkey);
if (gci->certs) {
for (int i = 0; i < gci->nr_certs; i++)
gnutls_x509_crt_deinit(gci->certs[i]);