Skip to content
Permalink
Browse files
Fix build with GnuTLS 2.12
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 13, 2012
1 parent 4af8c6c commit ca40f7c5d70d5250dfeede19f2b769ef261ed3da
Showing with 3 additions and 3 deletions.
  1. +3 −3 gnutls.c
@@ -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);

0 comments on commit ca40f7c

Please sign in to comment.