Potential crash fix for tools.

This commit is contained in:
Jan Vidar Krey 2014-07-29 17:35:14 +02:00
parent b85381c0f5
commit cbe0b4e108
1 changed files with 1 additions and 1 deletions

View File

@ -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);