Commit ca40f7c5 authored by David Woodhouse's avatar David Woodhouse

Fix build with GnuTLS 2.12

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 4af8c6cc
......@@ -1250,12 +1250,12 @@ static int load_certificate(struct openconnect_info *vpninfo)
}
gnutls_free(extra_certs);
gnutls_free(supporting_certs);
if (fdata.data != dummy_hash_data)
gnutls_free(fdata.data);
#ifdef HAVE_GNUTLS_CERTIFICATE_SET_KEY
if (pkey)
gnutls_privkey_deinit(pkey);
#endif
if (fdata.data != dummy_hash_data)
#endif /* It's conditional if we support arbitrary privkeys: */
gnutls_free(fdata.data);
#ifdef HAVE_P11KIT
if (cert_url != vpninfo->cert)
free(cert_url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment