From 877280db09e8e136e4aecee76149fe126069239c Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Wed, 2 Sep 2015 15:09:24 +0300 Subject: [PATCH] be_openssl: don't use *_auto() in do_handshake() we can't have fd == -1 there --- bufferevent_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bufferevent_openssl.c b/bufferevent_openssl.c index fbd2971f..4afdde27 100644 --- a/bufferevent_openssl.c +++ b/bufferevent_openssl.c @@ -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, -- 2.40.0