Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 ca40f7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gnutls.c
Expand Up @@ -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);
Expand Down

0 comments on commit ca40f7c

Please sign in to comment.