diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-15 10:43:22 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-15 10:43:22 +0100 |
commit | ab01223c4583cb5da93046b05baddc75a3b27bc8 (patch) | |
tree | 41b58074a11e6bf4ad85cd29e0ec71bdd473c649 /lib/conn.c | |
parent | 23744d97b5b8cc8f5fb962bcea4ed0bfdaab351d (diff) |
Don't touch TLS specific things w/o RS_ENABLE_TLS.
Diffstat (limited to 'lib/conn.c')
-rw-r--r-- | lib/conn.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -127,10 +127,12 @@ rs_conn_destroy (struct rs_connection *conn) if (conn->is_connected) err = rs_conn_disconnect (conn); +#if defined (RS_ENABLE_TLS) if (conn->tls_ssl) /* FIXME: Free SSL strucxt in rs_conn_disconnect? */ SSL_free (conn->tls_ssl); if (conn->tls_ctx) SSL_CTX_free (conn->tls_ctx); +#endif if (conn->tev) event_free (conn->tev); |