diff options
author | Marco Peereboom <marco@conformal.com> | 2011-01-09 14:28:15 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-01-09 14:28:15 +0000 |
commit | c0737af27802e3d58ff10cf39f01177537e917d8 (patch) | |
tree | 98bb2aafe2001ed135dc611e0c4e8a3a6fe6e260 /xxxterm.c | |
parent | 9c000bf6cbf953c26c4e2628e596a04f2d18b222 (diff) | |
download | xombrero-c0737af27802e3d58ff10cf39f01177537e917d8.tar.gz |
i hate you _t, with a passion
Diffstat (limited to 'xxxterm.c')
-rw-r--r-- | xxxterm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xxxterm.c b/xxxterm.c index deb4fb6..57e0a0d 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -2217,15 +2217,15 @@ start_tls(int s, gnutls_session_t *gs, gnutls_certificate_credentials_t *xc) gnutls_transport_set_ptr(gsession, (gnutls_transport_ptr_t)(long)s); if ((rv = gnutls_handshake(gsession)) < 0) { warnx("gnutls_handshake failed %d", rv); - stop_tls(gsession, xcred); + gnutls_certificate_free_credentials(xcred); goto done; } gnutls_credentials_type_t cred; cred = gnutls_auth_get_type(gsession); if (cred != GNUTLS_CRD_CERTIFICATE) { - warnx("invalid credential type"); - stop_tls(gsession, xcred); + gnutls_deinit(gsession); + gnutls_certificate_free_credentials(xcred); goto done; } |