]> granicus.if.org Git - libevent/commit
Fix reusing bufferevent_openssl after fd was reseted (i.e. on new connection)
authorAzat Khuzhin <a3at.mail@gmail.com>
Sat, 19 Nov 2016 14:08:53 +0000 (17:08 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 6 Dec 2016 22:34:14 +0000 (01:34 +0300)
commit5ab9518f158394c9d759e4d897ce5f67d3ec2fba
tree6604c450c3d50b281cf17a0a527906c20d0e7827
parentcfe2ab22f219de2dacd3560a6a68451732fb3cba
Fix reusing bufferevent_openssl after fd was reseted (i.e. on new connection)

For example if you trying to issue multiple requests over the same
evhttp_conneciton, and if connection already closed (IOW it should be
re-connected), than you will get into trouble since it will got wrong
openssl state. This patch addresses this issue by restoring state to
initial if SETFD called with -1 fd.
bufferevent_openssl.c