Potential crash fix for tools.
This commit is contained in:
parent
b85381c0f5
commit
cbe0b4e108
@ -137,7 +137,7 @@ void net_con_reinitialize(struct net_connection* con, net_connection_cb callback
|
|||||||
void net_con_destroy(struct net_connection* con)
|
void net_con_destroy(struct net_connection* con)
|
||||||
{
|
{
|
||||||
#ifdef SSL_SUPPORT
|
#ifdef SSL_SUPPORT
|
||||||
if (con->ssl)
|
if (con && con->ssl)
|
||||||
net_ssl_destroy(con);
|
net_ssl_destroy(con);
|
||||||
#endif
|
#endif
|
||||||
hub_free(con);
|
hub_free(con);
|
||||||
|
Loading…
Reference in New Issue
Block a user