mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
be_openssl: don't use *_auto() in do_handshake() we can't have fd == -1 there
This commit is contained in:
parent
e8a2da96e3
commit
877280db09
@ -1030,7 +1030,7 @@ do_handshake(struct bufferevent_openssl *bev_ssl)
|
||||
int fd = event_get_fd(&bev_ssl->bev.bev.ev_read);
|
||||
/* We're done! */
|
||||
bev_ssl->state = BUFFEREVENT_SSL_OPEN;
|
||||
set_open_callbacks_auto(bev_ssl, fd); /* XXXX handle failure */
|
||||
set_open_callbacks(bev_ssl, fd); /* XXXX handle failure */
|
||||
/* Call do_read and do_write as needed */
|
||||
bufferevent_enable(&bev_ssl->bev.bev, bev_ssl->bev.bev.enabled);
|
||||
bufferevent_run_eventcb_(&bev_ssl->bev.bev,
|
||||
|
Loading…
x
Reference in New Issue
Block a user