Don't do SSL_clear unless the SSL object is initialized.

This commit is contained in:
Jan Vidar Krey 2010-08-24 23:18:42 +02:00
parent 3353049ae3
commit 47cf3326fd
1 changed files with 2 additions and 1 deletions

View File

@ -180,7 +180,8 @@ void net_con_close(struct net_connection* con)
g_backend->handler.con_del(g_backend->data, con); g_backend->handler.con_del(g_backend->data, con);
#ifdef SSL_SUPPORT #ifdef SSL_SUPPORT
SSL_clear(con->ssl); if (con->ssl)
SSL_clear(con->ssl);
#endif #endif
net_close(con->sd); net_close(con->sd);