projects
/
libradsec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
23744d9
)
Don't touch TLS specific things w/o RS_ENABLE_TLS.
author
Linus Nordberg
<linus@nordu.net>
Tue, 15 Mar 2011 09:43:22 +0000
(10:43 +0100)
committer
Linus Nordberg
<linus@nordu.net>
Tue, 15 Mar 2011 09:43:22 +0000
(10:43 +0100)
lib/conn.c
patch
|
blob
|
history
diff --git
a/lib/conn.c
b/lib/conn.c
index
249c50d
..
36893bc
100644
(file)
--- a/
lib/conn.c
+++ b/
lib/conn.c
@@
-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);