From cbe0b4e108bd5db1b8faa0154758e12098f67bdf Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Tue, 29 Jul 2014 17:35:14 +0200 Subject: [PATCH] Potential crash fix for tools. --- src/network/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/connection.c b/src/network/connection.c index 4ef20d7..1579386 100644 --- a/src/network/connection.c +++ b/src/network/connection.c @@ -137,7 +137,7 @@ void net_con_reinitialize(struct net_connection* con, net_connection_cb callback void net_con_destroy(struct net_connection* con) { #ifdef SSL_SUPPORT - if (con->ssl) + if (con && con->ssl) net_ssl_destroy(con); #endif hub_free(con);