From f25cb7bd5dc438d3dea4b8c1e84240a933605d9d Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Tue, 24 Aug 2010 23:18:42 +0200 Subject: [PATCH] Don't do SSL_clear unless the SSL object is initialized. --- src/network/backend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/backend.c b/src/network/backend.c index 291b694..3e8cd63 100644 --- a/src/network/backend.c +++ b/src/network/backend.c @@ -180,7 +180,8 @@ void net_con_close(struct net_connection* con) g_backend->handler.con_del(g_backend->data, con); #ifdef SSL_SUPPORT - SSL_clear(con->ssl); + if (con->ssl) + SSL_clear(con->ssl); #endif net_close(con->sd);