mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Don't loose top error in SSL
Closes: #775 (cherry-picked) (cherry picked from commit a30d6d85219ea80c16df6da4f6a9430254e5a0da)
This commit is contained in:
parent
ca76ebb0d6
commit
3d1a7a1d45
@ -511,12 +511,15 @@ conn_closed(struct bufferevent_openssl *bev_ssl, int when, int errcode, int ret)
|
|||||||
/* IO error; possibly a dirty shutdown. */
|
/* IO error; possibly a dirty shutdown. */
|
||||||
if ((ret == 0 || ret == -1) && ERR_peek_error() == 0)
|
if ((ret == 0 || ret == -1) && ERR_peek_error() == 0)
|
||||||
dirty_shutdown = 1;
|
dirty_shutdown = 1;
|
||||||
|
put_error(bev_ssl, errcode);
|
||||||
break;
|
break;
|
||||||
case SSL_ERROR_SSL:
|
case SSL_ERROR_SSL:
|
||||||
/* Protocol error. */
|
/* Protocol error. */
|
||||||
|
put_error(bev_ssl, errcode);
|
||||||
break;
|
break;
|
||||||
case SSL_ERROR_WANT_X509_LOOKUP:
|
case SSL_ERROR_WANT_X509_LOOKUP:
|
||||||
/* XXXX handle this. */
|
/* XXXX handle this. */
|
||||||
|
put_error(bev_ssl, errcode);
|
||||||
break;
|
break;
|
||||||
case SSL_ERROR_NONE:
|
case SSL_ERROR_NONE:
|
||||||
case SSL_ERROR_WANT_READ:
|
case SSL_ERROR_WANT_READ:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user