]> granicus.if.org Git - libevent/commitdiff
be_openssl: don't use *_auto() in do_handshake() we can't have fd == -1 there
authorAzat Khuzhin <a3at.mail@gmail.com>
Wed, 2 Sep 2015 12:09:24 +0000 (15:09 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 2 Sep 2015 16:28:33 +0000 (19:28 +0300)
bufferevent_openssl.c

index fbd2971f5db11a72b2d05f721550a71b635efdeb..4afdde27b2ab63cb92de31922688e77d97fc037b 100644 (file)
@@ -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,