From 42e23da1293425dca80e67213e761874da060cb0 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Fri, 22 Jun 2012 09:11:41 +0000 Subject: [PATCH] Fix compilation without SSL. git-svn-id: file:///svn/unbound/trunk@2698 be551aaa-1e26-0410-a405-d3ace91eadb9 --- services/outside_network.c | 2 ++ util/netevent.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/services/outside_network.c b/services/outside_network.c index 24d65db39..ba40d474d 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -297,9 +297,11 @@ decomission_pending_tcp(struct outside_network* outnet, struct pending_tcp* pend) { if(pend->c->ssl) { +#ifdef HAVE_SSL SSL_shutdown(pend->c->ssl); SSL_free(pend->c->ssl); pend->c->ssl = NULL; +#endif } comm_point_close(pend->c); pend->next_free = outnet->tcp_free; diff --git a/util/netevent.c b/util/netevent.c index 2557a8b7a..1998d646a 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -850,9 +850,11 @@ reclaim_tcp_handler(struct comm_point* c) { log_assert(c->type == comm_tcp); if(c->ssl) { +#ifdef HAVE_SSL SSL_shutdown(c->ssl); SSL_free(c->ssl); c->ssl = NULL; +#endif } comm_point_close(c); if(c->tcp_parent) { @@ -1854,8 +1856,10 @@ comm_point_delete(struct comm_point* c) if(!c) return; if(c->type == comm_tcp && c->ssl) { +#ifdef HAVE_SSL SSL_shutdown(c->ssl); SSL_free(c->ssl); +#endif } comm_point_close(c); if(c->tcp_handlers) { -- 2.47.3