mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 21:10:06 -04:00
Merge pull request #171 from azat/bufferevent-openssl-fixes-v4
bufferevent_openssl: reset fd_is_set when setfd with -1 is called
This commit is contained in:
commit
e69f390859
@ -1276,6 +1276,8 @@ be_openssl_ctrl(struct bufferevent *bev,
|
||||
SSL_set_bio(bev_ssl->ssl, bio, bio);
|
||||
bev_ssl->fd_is_set = 1;
|
||||
}
|
||||
if (data->fd == -1)
|
||||
bev_ssl->fd_is_set = 0;
|
||||
if (bev_ssl->state == BUFFEREVENT_SSL_OPEN)
|
||||
return set_open_callbacks(bev_ssl, data->fd);
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user