From: Wouter Wijngaards Date: Fri, 22 Jun 2012 09:11:41 +0000 (+0000) Subject: Fix compilation without SSL. X-Git-Tag: release-1.4.18rc1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42e23da1293425dca80e67213e761874da060cb0;p=thirdparty%2Funbound.git Fix compilation without SSL. git-svn-id: file:///svn/unbound/trunk@2698 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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) {