fix stupid openssl crash

SVN revision: 57878
This commit is contained in:
Mike Blumenkrantz 2011-03-19 05:02:37 +00:00
parent 3b9219748d
commit 6fe0efadd5
2 changed files with 6 additions and 0 deletions

View File

@ -84,3 +84,7 @@
2011-03-16 Cedric Bail
* Add ecore_thread_reschedule.
2011-03-19 Mike Blumenkrantz
* Fix crash in ecore_con_ssl related to attempted connections on a dead socket

View File

@ -1308,6 +1308,7 @@ _ecore_con_ssl_server_read_openssl(Ecore_Con_Server *svr,
{
int num;
if (!svr->ssl) return -1;
num = SSL_read(svr->ssl, buf, size);
svr->ssl_err = SSL_get_error(svr->ssl, num);
@ -1460,6 +1461,7 @@ _ecore_con_ssl_client_read_openssl(Ecore_Con_Client *cl,
{
int num;
if (!cl->ssl) return -1;
num = SSL_read(cl->ssl, buf, size);
cl->ssl_err = SSL_get_error(cl->ssl, num);